Enter a chart definition above or choose an example.
typestring (required)
One of: "bar", "line", "pie", "area", "scatter", "radar"
titlestring
Main chart title
subtitlestring
Optional subtitle below the title
labelsstring[] (required)
X-axis category labels, e.g. ["Jan","Feb","Mar"]
datasetsobject[] (required)
Array of {name: string, data: number[]}. Max 1,000 total data points.
colorsstring[]
Hex colors per dataset, e.g. ["#f78166","#58a6ff"]
legendobject
{show: boolean, position: "top"|"bottom"|"left"|"right"}
axesobject
{xLabel: string, yLabel: string, showGrid: boolean, beginAtZero: boolean, yFormat: "default"|"currency"|"percent"|"compact"}
formatstring
"png" (default) or "jpeg"
width / heightinteger
Output dimensions in px. Default 800×450.
backgroundstring
Background color hex. Default "#0d1117".