add_combo_chart
Insert a combo chart with mixed series types and an optional secondary axis, enabling side-by-side comparison of measures with different units or a target line across actuals.
Instructions
Add a chart whose series are not all the same type, and may use a second value axis.
This is what add_chart cannot do. Reach for it when:
a measure needs a reference line across it — actuals as columns with a target as a line;
two measures share categories but not units — revenue in millions against a margin percentage. On one axis the percentage flattens to nothing along the bottom; on a secondary axis both are readable.
series: one entry per series, plotted in the order given: {"name": "Revenue", "values": [10, 12, 15], "type": "column", "secondary_axis": false, "color": [31, 73, 125], "data_labels": true, "label_position": "outside_end", "trendline": "linear"} "type" is required — column, stacked_column, bar, stacked_bar, line, line_markers, area, stacked_area. Pie and scatter cannot share a plot area with other types; use add_chart for those. "color" is [r, g, b]; omit to take the template's own chart palette, which is usually the right choice. "label_position" on a stacked series must be "center", "inside_end" or "inside_base" — a stacked segment has no outside. "trendline" is linear, movingAvg, exp, log, poly or power.
secondary_axis_title labels the right-hand axis; y_axis_title labels the left one. x_axis_title labels the category axis (see add_chart on why that is not the same as "the horizontal one").
The result is a real, editable PowerPoint chart, not a picture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | ||
| left | Yes | ||
| title | No | ||
| width | Yes | ||
| height | Yes | ||
| series | Yes | ||
| categories | Yes | ||
| has_legend | No | ||
| slide_index | Yes | ||
| x_axis_title | No | ||
| y_axis_title | No | ||
| legend_position | No | bottom | |
| presentation_id | No | ||
| secondary_axis_title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |