Area
Docs · Visuals
Area chart JSON format.
A filled line. With several series, the areas overlap or stack.
Try it
Edit the example and the visual redraws. Mistakes show the same messages the API returns.
The visual
Change any number or label. The chart follows.
Fields
| Field | Type | Rule |
|---|---|---|
curveOptional | string | "linear", "monotone" (smooth) or "step". |
stackedOptional | boolean | true stacks the series; false overlaps them. |
xKeyRequired | string | The key in each row that holds the category. Up to 80 characters. Must differ from every series key. |
seriesRequired | array | 1 to 6 entries, each { "key": string, "label": string }. key names a number field in every row; label is what the legend shows and is optional. Up to 80 characters each. A series may also have "dashed": true, as in { "key": "plan", "label": "Plan", "dashed": true }. |
dataRequired | array | Up to 500 rows, drawn in the order you list them. |
referencesOptional | array | Up to 6 items. { "value": 100, "label": "Budget" } draws a flat line at that number; { "at": "Mar", "label": "Launch" } draws a marker at that category, and is skipped while no row has it. On a line or bar chart with a series on the right axis, a value reference may take "axis": "right" to sit on that scale. label is optional, Up to 80 characters. |
| Field | Type | Rule |
|---|---|---|
<xKey>Required | string | The category, such as a month or a branch name. Not empty. Up to 80 characters. |
<series key>Required | number | One number for every series key. |
Good to know
- A row may hold only the xKey and the series keys. Any other key is an Unknown field error, so drop extra columns before you send.
- Category values are strings. Send dates as text, such as "2026-10" or "Oct 18".
Example
{
"xKey": "week",
"curve": "monotone",
"stacked": true,
"series": [
{ "key": "returning", "label": "Returning" },
{ "key": "new", "label": "New" }
],
"data": [
{ "week": "W30", "returning": 820, "new": 210 },
{ "week": "W31", "returning": 870, "new": 240 },
{ "week": "W32", "returning": 905, "new": 228 },
{ "week": "W33", "returning": 960, "new": 262 },
{ "week": "W34", "returning": 1010, "new": 255 },
{ "week": "W35", "returning": 1085, "new": 301 },
{ "week": "W36", "returning": 1120, "new": 268 },
{ "week": "W37", "returning": 1190, "new": 335 },
{ "week": "W38", "returning": 1262, "new": 318 },
{ "week": "W39", "returning": 1330, "new": 342 }
]
}Send it from your code
Paste the document in the editor, or replace it with a PUT to the visual's push URL. The push API page has the details and examples.
Next: Pie chart JSON format