Funnel chart
The stages of one flow, each narrowing to the next.
On this page
A funnel shows the stages of one flow and how much of it reaches each: visits, sign-ups, activations, payments. Each series is a stage, as wide as its value against the first stage's, and it narrows to the width of the stage after it, so where the flow thins most is where the shape steps in furthest. Its name stands beside it, and after it its value and what is left of the first stage.
Funnel chart
<div class="card max-w(560) mx-auto"> <div class="card-header"> <h3 class="card-title">Sign-up</h3> <p class="card-description">From a visit to a paid plan, this month</p> </div> <figure class="chart" id="signup"></figure></div><script>addEventListener('DOMContentLoaded', function () {MasterUI.chart(document.getElementById('signup'), { type: 'funnel', label: 'Sign-up funnel this month: people at each stage', series: [ { name: 'Visits', value: 12480 }, { name: 'Sign-ups', value: 4210 }, { name: 'Activated', value: 2380 }, { name: 'Paid', value: 642 } ]})})</script><script type="module"> import { attach } from '@master/ui/behaviors' attach()</script>import { Chart } from './ui/chart'<div className="card max-w(560) mx-auto"> <div className="card-header"> <h3 className="card-title">Sign-up</h3> <p className="card-description">From a visit to a paid plan, this month</p> </div> <Chart id="signup" type="funnel" label="Sign-up funnel this month: people at each stage" series={[ { name: 'Visits', value: 12480 }, { name: 'Sign-ups', value: 4210 }, { name: 'Activated', value: 2380 }, { name: 'Paid', value: 642 } ]} /></div><script> import Chart from './ui/Chart.svelte'</script><div class="card max-w(560) mx-auto"> <div class="card-header"> <h3 class="card-title">Sign-up</h3> <p class="card-description">From a visit to a paid plan, this month</p> </div> <Chart id="signup" type="funnel" label="Sign-up funnel this month: people at each stage" series={[ { name: 'Visits', value: 12480 }, { name: 'Sign-ups', value: 4210 }, { name: 'Activated', value: 2380 }, { name: 'Paid', value: 642 } ]} /></div><script setup>import Chart from './ui/Chart.vue'</script><template> <div class="card max-w(560) mx-auto"> <div class="card-header"> <h3 class="card-title">Sign-up</h3> <p class="card-description">From a visit to a paid plan, this month</p> </div> <Chart id="signup" type="funnel" label="Sign-up funnel this month: people at each stage" :series="[ { name: 'Visits', value: 12480 }, { name: 'Sign-ups', value: 4210 }, { name: 'Activated', value: 2380 }, { name: 'Paid', value: 642 } ]" /> </div></template>Give the stages in the order of the flow, each with one value. Each stage is a step lighter than the one before, from full ink to a tint, so the flow reads in tone as well as in width. A funnel is for one flow whose stages are subsets of the first; amounts that are not, such as sales by region, are bars.
#Options
| Option | Default | |
|---|---|---|
label | none | What the chart shows and in what unit: the plot's accessible name |
series | [] | Each with a name and what its form reads: values, a value, points, ranges or children; optionally a category, a type, low and high, and a ring's max |
format, tickFormat | the locale's | How a value and a tick are written; xFormat for a scatter's scale across |
current | none | The index of the point marked aria-current |
The readout, the keys, the legend, the colors and the scale are the same in every form: Chart holds them, with every option, class and custom property.