add_chart
Add a chart to any slide using your data series and chosen chart type (bar, line, pie, and more). Control its title, position, and size directly.
Instructions
Add a chart (bar, line, pie, etc.) to a slide with data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Height in inches (default: 4) | |
| w | No | Width in inches (default: 8) | |
| x | No | X position in inches (default: 1) | |
| y | No | Y position in inches (default: 1) | |
| data | Yes | Array of data series objects with name, labels, and values | |
| title | No | Chart title | |
| chartType | Yes | Chart type (bar, line, pie, doughnut, area, scatter) | |
| slideNumber | Yes | Slide number (1-based index) | |
| presentationId | Yes | The ID of the presentation |