add_chart
Add a chart to a Keynote slide. Supports bar, line, pie, and area charts with custom data series. Note: manual adjustment may be needed due to AppleScript limitations.
Instructions
Adds a chart to a slide. Note: Keynote's AppleScript support for charts is limited. This creates a chart and attempts to set the chart type. Data series configuration may require manual adjustment in Keynote due to AppleScript limitations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in points (default: 100) | |
| y | No | Y position in points (default: 100) | |
| data | No | Array of data series with name and values. Chart data may need manual adjustment in Keynote. | |
| width | No | Width in points (default: 600) | |
| height | No | Height in points (default: 400) | |
| chartType | Yes | Type of chart to create | |
| slideIndex | Yes | 1-based slide index |