Install
openclaw skills install generate-chartGenerate a chart image using Chart.js. Supports line, bar, pie, doughnut, radar, polarArea, bubble, and scatter chart types.
openclaw skills install generate-chartCreates a chart image using the Chart.js library. Supports bar, line, pie, doughnut, radar, polarArea, bubble, and scatter chart types with full Chart.js data and options configuration.
chart_type — one of: line, bar, pie, doughnut, radar, polarArea, bubble, scatterdata — Chart.js data object with labels and datasetsSend your API key in the CLIENT-API-KEY header.
Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.
| Parameter | Description |
|---|---|
chart_type | Type of chart (bar, line, pie, etc.) |
data | Chart.js data config (labels + datasets) |
options | Chart.js options (title, legend, scales) |
width / height | Chart dimensions in pixels |
output_format | url (default), base64, both, image |
curl -X POST https://pdfapihub.com/api/v1/generateChart \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"chart_type": "bar",
"data": {
"labels": ["Q1", "Q2", "Q3", "Q4"],
"datasets": [{
"label": "Revenue",
"data": [120000, 150000, 180000, 200000],
"backgroundColor": "rgba(54, 162, 235, 0.6)"
}]
},
"options": { "plugins": { "title": { "display": true, "text": "Quarterly Revenue" } } },
"width": 800,
"height": 500,
"output_format": "url"
}'