export_chart
Generate and export charts as images from Excel data by specifying file path, x-axis, y-axis columns, and chart type. Simplify data visualization for analysis and reporting.
Instructions
Create a chart from Excel data and return as an image.
Args:
file_path: Path to the Excel file
x_column: Column to use for x-axis
y_column: Column to use for y-axis
chart_type: Type of chart ('line', 'bar', 'scatter', 'hist')
sheet_name: Name of the sheet to chart (for Excel files)
Returns:
Chart as image
Input Schema
Name | Required | Description | Default |
---|---|---|---|
chart_type | No | line | |
file_path | Yes | ||
sheet_name | No | ||
x_column | Yes | ||
y_column | Yes |
Input Schema (JSON Schema)
{
"properties": {
"chart_type": {
"default": "line",
"title": "Chart Type",
"type": "string"
},
"file_path": {
"title": "File Path",
"type": "string"
},
"sheet_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Sheet Name"
},
"x_column": {
"title": "X Column",
"type": "string"
},
"y_column": {
"title": "Y Column",
"type": "string"
}
},
"required": [
"file_path",
"x_column",
"y_column"
],
"title": "export_chartArguments",
"type": "object"
}