create_chart
Create a chart in an Excel worksheet by specifying sheet, data range, chart type, and target cell, with optional title and axis labels.
Instructions
Create chart in worksheet.
Args:
sheet_name: Name of worksheet
data_range: Data range for chart
chart_type: Type of chart
target_cell: Cell where chart will be placed
session_id: Session ID from open_workbook (preferred)
filepath: Path to Excel file (legacy, deprecated)
title: Chart title (optional)
x_axis: X-axis label (optional)
y_axis: Y-axis label (optional)
Note: Use session_id for better performance. filepath parameter is deprecated.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet_name | Yes | ||
| data_range | Yes | ||
| chart_type | Yes | ||
| target_cell | Yes | ||
| session_id | No | ||
| filepath | No | ||
| title | No | ||
| x_axis | No | ||
| y_axis | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |