generate_chartjs
Generate interactive bar, line, or pie charts from pandas aggregated data, saving as self-contained HTML files.
Instructions
Generate an interactive Chart.js HTML file from series data.
Supports bar, line and pie charts. The self-contained HTML is
written to the charts directory (MCP_CHARTS_DIR, default ./charts)
and the tool returns its path. Pie charts use the first series only. Feed
it aggregated data — e.g. the output of a run_pandas_code group-by.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Chart data as {'labels': [...], 'series': [{'name': str, 'values': [...]}]}. Every series must match the label count. | |
| title | No | Chart title. | Chart |
| chart_type | No | bar |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||