Funnel
Docs · Visuals
Funnel chart JSON format.
Horizontal bars for the stages of a process, from first to last.
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 |
|---|---|---|
nameKeyRequired | string | The key in each row that holds the stage name. Up to 80 characters. |
valueKeyRequired | string | The key in each row that holds the count. Up to 80 characters. Must differ from nameKey. |
dataRequired | array | Up to 12 stages. An empty array draws an empty chart. |
| Field | Type | Rule |
|---|---|---|
<nameKey>Required | string | The slice or stage name. Not empty. Up to 80 characters. |
<valueKey>Required | number | Zero or more. |
Good to know
- Stages are drawn in the order you list them, never sorted.
- A row may hold only the nameKey and the valueKey.
Example
{
"nameKey": "stage",
"valueKey": "people",
"data": [
{ "stage": "Visits", "people": 4210 },
{ "stage": "Trials", "people": 1032 },
{ "stage": "Activated", "people": 611 },
{ "stage": "Paid", "people": 148 }
]
}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: Gauge JSON format