Chart Generator
ChartGeneratorChart Generator: Chart Generator is a chart API that turns your data into chart and graph images. Supports bar, line, pie, doughnut, radar, polar area, scatter and bubble charts with customizable styling. (Cost: 10 credits)
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": {
"datasets": "<datasets>"
},
"name": "ChartGenerator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Chart type | bar |
| title | No | Optional title displayed on the chart | |
| width | No | Image width in pixels | |
| format | No | Output format | png |
| height | No | Image height in pixels | |
| labels | No | Array of labels for the x-axis or chart segments. Required except for scatter and bubble charts, whose points carry their own x values | |
| options | No | Chart.js compatible options for scales, legend, and more | |
| datasets | Yes | Array of datasets with 'name' and 'values' | |
| backgroundColor | No | Canvas background: a colour name, #hex, rgb()/rgba(), or transparent (PNG and SVG only; JPEG falls back to white). Defaults to white | white |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |