set_series_color
Override a chart series color using a named color, hex string, or expression. Clear the color to revert to the palette. Returns confirmation of change.
Instructions
Write into a named series's block, overriding the chart palette for just that series. color accepts a named color ('Red'), a hex string ('#FF0000'), or an =expression. Pass '' to clear (series falls back to the palette). Returns {chart, series, kind, changed: bool}.
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": {
"path": "<path>",
"chart_name": "<chart_name>",
"series_name": "<series_name>",
"color": "<color>"
},
"name": "set_series_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| color | Yes | ||
| chart_name | Yes | ||
| series_name | Yes |