Funnel
The steps of a flow, each with how many reached it and what share of the step before moved on. Centered bars narrow with the count, so the biggest drop is visible at a glance; the words carry the exact numbers.
Usage
Use it when
- A sequence where each step is a subset of the one before: visit, try, sign up, pay; apply, screen, interview, offer.
- Finding the step that loses the most people, to decide what to fix first.
Use something else when
- Categories that are not nested steps: use Ranked bars.
- Change of one count over time: use Area chart.
- Parts of one whole: use Percentage bar.
- The status of one record moving through steps: use Steps.
Where it goes. In a chart card, half or full width. Three to six steps. Words sit above each bar, so it works at 320 px without change.
Examples
Where do learners drop off?
People at each step, 1 to 16 November
Biggest loss: account to payment, 27% move on
Where do learners drop off?
People at each step, 1 to 16 November
Biggest loss: account to payment, 27% move on
<section class="chart-card" style="max-width: 560px;" aria-labelledby="fn-q">
<div><div class="chart-card__q" id="fn-q">Where do learners drop off?</div><div class="chart-card__sub">People at each step, 1 to 16 November</div></div>
<ol class="funnel" data-lds-grow aria-label="Sign-up funnel, 1 to 16 November">
<li class="funnel__row" style="--v: 100.0%;">
<div class="funnel__meta"><span class="funnel__label">Visited the course page</span><span><span class="funnel__val">12,480</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row" style="--v: 42.0%;">
<div class="funnel__meta"><span class="funnel__label">Started the free lesson</span><span><span class="funnel__val">5,240</span><span class="funnel__conv">42% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row" style="--v: 24.9%;">
<div class="funnel__meta"><span class="funnel__label">Finished the free lesson</span><span><span class="funnel__val">3,110</span><span class="funnel__conv">59% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row" style="--v: 18.3%;">
<div class="funnel__meta"><span class="funnel__label">Created an account</span><span><span class="funnel__val">2,290</span><span class="funnel__conv">74% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row is-drop" style="--v: 4.9%;">
<div class="funnel__meta"><span class="funnel__label">Paid for the course</span><span><span class="funnel__val">610</span><span class="funnel__conv">27% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
</ol>
<div class="chart-card__foot"><span>Biggest loss: account to payment, 27% move on</span></div>
</section>How many tutors make it through?
Tutor applications, autumn round
How many tutors make it through?
Tutor applications, autumn round
<section class="chart-card" style="max-width: 420px;" aria-labelledby="fn-h">
<div><div class="chart-card__q" id="fn-h">How many tutors make it through?</div><div class="chart-card__sub">Tutor applications, autumn round</div></div>
<ol class="funnel" data-lds-grow aria-label="Tutor hiring funnel, autumn round">
<li class="funnel__row" style="--v: 100.0%;">
<div class="funnel__meta"><span class="funnel__label">Applied</span><span><span class="funnel__val">214</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row" style="--v: 44.9%;">
<div class="funnel__meta"><span class="funnel__label">Passed screening</span><span><span class="funnel__val">96</span><span class="funnel__conv">45% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row is-drop" style="--v: 14.5%;">
<div class="funnel__meta"><span class="funnel__label">Interviewed</span><span><span class="funnel__val">31</span><span class="funnel__conv">32% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
<li class="funnel__row is-drop" style="--v: 2.8%;">
<div class="funnel__meta"><span class="funnel__label">Offered</span><span><span class="funnel__val">6</span><span class="funnel__conv">19% of the step before</span></span></div>
<div class="funnel__track" aria-hidden="true"><span class="funnel__bar"></span></div>
</li>
</ol>
</section>Anatomy
| Part | What it is |
|---|---|
ol.funnel | Required. An ordered list with an aria-label; the order is the meaning. |
li.funnel__row | Required. One step. --v is its count as a percent of the first step. |
.funnel__meta | Required. .funnel__label (the step), .funnel__val (the count) and .funnel__conv (share of the step before). |
.funnel__track > .funnel__bar | Required. A 28 px fill track with the bar centered in it; decorative (aria-hidden). |
.is-drop | Optional on a row: the step that loses most (or under your threshold); its share turns to danger text. |
Variants and sizes
| Class or attribute | When |
|---|---|
.is-drop | Flags the step with the weakest share; say it in the footer too. |
--v | Bar width: count divided by the first step's count. |
States
| State | How |
|---|---|
data change | Set new --v and words: bars move over 480 ms on --ease-inout. |
empty | Keep the step names; counts at 0 and one line: "No visits in this period". |
loading | A .skel line and a 28 px .skel strip per step. |
Motion and microinteractions
- First view (
data-lds-grow): bars grow outward from the center on--spring-smooth, 35 ms apart top to bottom. - Later changes: width over
--d-consideredon--ease-inout. Hover fades other bars over--d-fast. - Reduced motion: drawn at once.
Accessibility
- An
olwitharia-label, so the steps are announced in order with their counts and shares as text. - The bars are
aria-hidden; they repeat the numbers. - The weakest step is named in words in the footer, not only by color.
Do and don't
Do
- Name steps as what people did ("Created an account").
- Show the share of the step before, not of the first step; that is where the decision is.
Don't
- Draw trapezoids or 3D cones; centered bars are exact.
- Use a funnel for steps people can skip or repeat.
Behavior and code
Plain HTML. Optional: data-lds-grow on the list plays the first-view entrance.