set_data_color
Set a chart's default series fill color in Power BI with a hex value, ideal for applying theme colors to single-measure visuals.
Instructions
Set a chart's data colour (the default series fill). For a branded single-measure chart, point this at a theme colour.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reportSessionId": "<reportSessionId>",
"pageName": "<pageName>",
"visualName": "<visualName>",
"color": "<color>"
},
"name": "set_data_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | hex colour e.g. #16365C | |
| pageName | Yes | ||
| visualName | Yes | ||
| reportSessionId | Yes |