chart
A chart over ready-made points. The client aggregates nothing — the server does the math.
{
"type": "chart",
"kind": "line",
"x_label": "Day",
"y_label": "Orders",
"series": [
{
"label": "2026-07",
"points": [
{
"x": "2026-07-01",
"y": 120
},
{
"x": "2026-07-02",
"y": 138
}
]
}
]
}
| Field | Type | Values |
|---|---|---|
kind | enum | line, bar, pie |
series | [{label, points: [{x, y}]}] | x — string or ISO date |
x_label | string? | X axis caption |
y_label | string? | Y axis caption |
Multiple lines/series — several objects in series. Pie — kind: pie,
each point = a sector.