Data to chart image (bar, line, pie, doughnut, radar)
data_to_chartData to chart image (bar, line, pie, doughnut, radar). Turns labels and numeric series into a chart image, without a browser. Pie and doughnut accept 1 series only.
Costs 1 credit per call.
Returns a temporary download link (valid 15 minutes). Always include that link in your reply so the user can open or download the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Chart type: "bar", "line", "pie", "doughnut" or "radar". | |
| title | No | Optional title shown above the chart. | |
| width | No | Chart width in pixels (200-2000). Default 800. | |
| format | No | Image format: "png" (default) or "svg". | png |
| height | No | Chart height in pixels (200-2000). Default 500. | |
| labels | Yes | Category names, 1 to 50 strings of up to 100 characters each: the x axis for bar and line charts, the slices for pie and doughnut, the axes for radar. | |
| series | Yes | Data series, 1 to 10. Each item is {"name": "Series name", "data": [numbers]} with one number per label. Pie and doughnut charts use only the first series. |