format_chart_series
Restyle a single series in an existing chart to match brand colors, highlight key data points, or add trendlines. Specify color, number format, label position, and trendline type for precise chart updates.
Instructions
Restyle one series of an existing chart.
Use it to pin a series to a brand colour, to label just the series that carries the point rather than all of them, or to add a trendline.
series_index is 0-based across the whole chart, in the order the series were added. label_position: center, inside_end, inside_base, outside_end (bars and columns), or above / below / left / right (line charts). A stacked series rejects outside_end. number_format: an Excel format string, e.g. "0.0%" or "#,##0". trendline: linear, movingAvg, exp, log, poly or power; trendline_period is the window for movingAvg or the order for poly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| trendline | No | ||
| data_labels | No | ||
| shape_index | Yes | ||
| slide_index | Yes | ||
| series_index | Yes | ||
| number_format | No | ||
| label_position | No | ||
| presentation_id | No | ||
| trendline_period | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |