add-slide-title-with-chart
Add a slide with a title and chart to a PowerPoint presentation. Automatically selects the chart type based on the provided data structure, streamlining data visualization in presentations.
Instructions
Add a new slide with a title and chart. The chart type will be automatically selected based on the data structure.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Chart data structure | |
presentation_name | Yes | Name of the presentation to add the slide to | |
title | Yes | Title of the slide |
Input Schema (JSON Schema)
{
"properties": {
"data": {
"description": "Chart data structure",
"properties": {
"categories": {
"description": "X-axis categories or labels (optional)",
"items": {
"type": [
"string",
"number"
]
},
"type": "array"
},
"series": {
"items": {
"properties": {
"name": {
"description": "Name of the data series",
"type": "string"
},
"values": {
"description": "Values for the series. Can be simple numbers or [x,y] pairs for scatter plots",
"items": {
"oneOf": [
{
"type": "number"
},
{
"items": {
"type": "number"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
}
]
},
"type": "array"
}
},
"required": [
"name",
"values"
],
"type": "object"
},
"type": "array"
},
"x_axis": {
"description": "X-axis title (optional)",
"type": "string"
},
"y_axis": {
"description": "Y-axis title (optional)",
"type": "string"
}
},
"required": [
"series"
],
"type": "object"
},
"presentation_name": {
"description": "Name of the presentation to add the slide to",
"type": "string"
},
"title": {
"description": "Title of the slide",
"type": "string"
}
},
"required": [
"presentation_name",
"title",
"data"
],
"type": "object"
}