apply_chart_theme
Apply a visual theme (dark, light, or infographic) to a Plotly chart figure, and optionally add callout annotations or shaded highlight zones.
Instructions
Apply visual theme to a chart figure from create_chart().
Themes: 'dark' (data-journalism), 'light' (clean), 'infographic' (large type). Add annotations: [{"text": "...", "x": val, "y": val}] for callouts. Add zones: [{"x_start": val, "x_end": val, "label": "..."}] for highlights.
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": {
"figure": "<figure>"
},
"name": "apply_chart_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | 'dark', 'light', or 'infographic' | dark |
| figure | Yes | Plotly figure dict from create_chart() | |
| annotations | No | Callout annotations | |
| highlight_zones | No | Shaded highlight regions |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||