pbi_set_series_color
Set the fill colour for a single series of a chart visual by specifying the series index or name.
Instructions
Set the fill colour for a single series of a chart visual.
Power BI stores per-series overrides inside singleVisual.objects.dataPoint
as additional list entries with an id selector pinned to the target
series' measure or column. The bare defaultColor property only
affects series that do not have an explicit override — using it on a
multi-series chart paints every series the same colour.
Specify the target series by series_index (0-based across the
visual's projections, in role order) or series_name (matches the
queryRef or the underlying measure / column Property name).
Optional role narrows the lookup to a specific projection role
(e.g. "Y", "Values").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| role | No | ||
| color | Yes | ||
| visual_id | Yes | ||
| series_name | No | ||
| series_index | No | ||
| extract_folder | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |