Skip to content
Vega-Lite templates

Vega-Lite — conversion funnel

Stacked bar showing conversion across funnel steps.

Template previewVega-Lite
01,0002,0003,0004,0005,0006,0007,0008,0009,00010,000countVisitSign-upActivateSubscribestep

What this template contains

Marks
bar
Encodes
y, x
Source
14 lines

Make it your own.

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "data": {"values": [
    {"step":"Visit","count":10000},
    {"step":"Sign-up","count":3200},
    {"step":"Activate","count":1900},
    {"step":"Subscribe","count":410}
  ]},
  "mark":"bar",
  "encoding": {
    "y":{"field":"step","type":"nominal","sort":null},
    "x":{"field":"count","type":"quantitative"}
  }
}