Create a hosted chart
create_chartTurn a semantic chart description into a permanent hosted image URL that renders server-side and embeds anywhere, no client-side library required.
Instructions
Describe a chart semantically (bar, line, area, pie, doughnut, radar, scatter, qr, graph, gauge, …) and get back a permanent, hosted Image-Charts image URL that renders server-side and embeds anywhere. No client-side chart library required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qr | No | QR-code options (type = qr). | |
| icac | No | Image-Charts Enterprise account id. When the IMAGE_CHARTS_SECRET env var is also set, the URL is HMAC-SHA256 signed (&ichm=…). Ignored on Dedicated Cloud (IMAGE_CHARTS_HOST). | |
| size | No | Pixel size. Each side <= 999 and width*height <= 998001. Sensible per-type defaults are used when omitted (e.g. 700x400 for bar/line, 300x300 for qr). | |
| type | Yes | Semantic chart type. Call list_chart_types for the full catalog and the Image-Charts `cht` each maps to. | |
| gauge | No | Gauge options (type = gauge). | |
| graph | No | GraphViz options (type = graph). | |
| title | No | Title drawn above the chart. | |
| colors | No | Hex colors WITHOUT a leading #, one per series (or per slice for pie/doughnut). | |
| format | No | url (default) returns only the hosted URL; png also fetches the rendered PNG; both returns the URL and the image. | |
| labels | No | Category / slice labels: x-axis ticks for bar & line, slice labels for pie & doughnut, axis labels for radar. An empty string skips one label. | |
| legend | No | Show a legend built from series names. true = right side; or pick a side explicitly. | |
| series | No | One or more data series. Required for every type except qr and graph. Use `data` for numeric series, `points` for scatter. |