Community project. This is not an official government website.

Run by volunteers. Lampung Design System is built by an open source community. No government agency runs or endorses it.

Official services use go.id. Government websites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

Funnel

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

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

From visit to paymentUnder 40 % moving on marks the step red in words. Bars grow from the center on first view, one after another.
Where do learners drop off?
People at each step, 1 to 16 November
  1. Visited the course page12,480
  2. Started the free lesson5,24042% of the step before
  3. Finished the free lesson3,11059% of the step before
  4. Created an account2,29074% of the step before
  5. Paid for the course61027% of the step before
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>
A short funnelFour steps of a hiring round.
How many tutors make it through?
Tutor applications, autumn round
  1. Applied214
  2. Passed screening9645% of the step before
  3. Interviewed3132% of the step before
  4. Offered619% of the step before
<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

PartWhat it is
ol.funnelRequired. An ordered list with an aria-label; the order is the meaning.
li.funnel__rowRequired. One step. --v is its count as a percent of the first step.
.funnel__metaRequired. .funnel__label (the step), .funnel__val (the count) and .funnel__conv (share of the step before).
.funnel__track > .funnel__barRequired. A 28 px fill track with the bar centered in it; decorative (aria-hidden).
.is-dropOptional on a row: the step that loses most (or under your threshold); its share turns to danger text.

Variants and sizes

Class or attributeWhen
.is-dropFlags the step with the weakest share; say it in the footer too.
--vBar width: count divided by the first step's count.

States

StateHow
data changeSet new --v and words: bars move over 480 ms on --ease-inout.
emptyKeep the step names; counts at 0 and one line: "No visits in this period".
loadingA .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-considered on --ease-inout. Hover fades other bars over --d-fast.
  • Reduced motion: drawn at once.

Accessibility

  • An ol with aria-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.