generate_line_chart
Generate a line chart for time-series or trend analysis. Supply dataset, x-axis and y-axis columns, plus optional group-by to produce a chart file and chart data.
Instructions
Generate a line chart — great for time series or trends.
Args:
dataset: Name of the dataset.
x_column: Column for the X axis, ideally a date or ordered category.
y_column: Numeric column for the Y axis (summed per X value).
title: Chart title.
group_by: Optional column to draw one line per group.
filename: Output filename (auto-generated if empty).
Returns:
A JSON str with {"chart_path":"...","chart_data":"..."}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset": "<dataset>",
"x_column": "<x_column>",
"y_column": "<y_column>",
"title": "<title>"
},
"name": "generate_line_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| dataset | Yes | ||
| filename | No | ||
| group_by | No | ||
| x_column | Yes | ||
| y_column | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |