Output Charts

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
Funnel

Change any number or label. The chart follows.

Fields

The funnel document
FieldTypeRule
nameKeyRequiredstringThe key in each row that holds the stage name. Up to 80 characters.
valueKeyRequiredstringThe key in each row that holds the count. Up to 80 characters. Must differ from nameKey.
dataRequiredarrayUp to 12 stages. An empty array draws an empty chart.
Each row in data
FieldTypeRule
<nameKey>RequiredstringThe slice or stage name. Not empty. Up to 80 characters.
<valueKey>RequirednumberZero 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