A Chart.js configuration → finished chart as PNG. All Chart.js types (bar, line, pie, radar, …), rendered server-side.
| Name | Type | Description |
|---|---|---|
config | object · required | Chart.js configuration ({type, data, options}). |
width | integer · optional | Default 900. |
height | integer · optional | Default 500. |
background | string · optional | Hex colour or "transparent", default white. |
curl -X POST https://api.bigapi.dev/v1/chart -H 'Authorization: Bearer $KEY' -H 'Content-Type: application/json' -d '{"config":{"type":"bar","data":{"labels":["Q1","Q2"],"datasets":[{"data":[10,20]}]}}}' -o chart.png
HTTP/1.1 200 OK Content-Type: image/png X-BigAPI-Cost: 1 (PNG body, 900x500)