Skip to content
IndexRequest a UIAboutContact

Funnel Chart

Four funnel stages with step and overall conversion; hover or focus a stage to read its details.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Create a four-stage conversion funnel: Visitors 10,000, Sign-ups 3,200, Trials 1,100, Paid 420. Each stage is a horizontal bar centred in the row with width proportional to its count, near-black for the focused stage and mid-grey for the others, stage name and count inside or beside the bar. Between stages show the step conversion as a small grey percentage chip (32%, 34%, 38%) and mark the biggest drop-off in red text. A detail line below shows the hovered or focused stage: "Trials: 11% of all visitors, 34% of sign-ups". Stages are focusable buttons with aria-describedby on the detail line. Bars animate in with an 80 millisecond stagger; prefers-reduced-motion shows them instantly. Plain HTML, CSS and JavaScript.

About this pattern

Definition

A funnel chart shows how a count shrinks through ordered stages. Each bar's width shows the number that reached that stage, and the gap between bars shows the drop-off.

Purpose & UX principles

  • Use for processes where people progress step by step: visit, sign up, trial, paid.
  • Show two numbers per stage: conversion from the previous step and from the very first step.
  • Order stages logically and keep labels short; highlight the biggest drop-off to guide action.

Interaction states

  • Default, hover or focus on a stage (detail text and highlight), biggest drop-off marked.

Motion specification

  • Bars grow from the left over 500ms with a 80ms stagger on load; hover highlight 120ms.
  • Reduced motion: bars appear at full size.

Responsive behaviour

  • Bars scale to the container width; on narrow screens keep labels above the bars and move percentages into the detail line.
  • Each stage is focusable so keyboard users get the same details.

Code

HTML
<div class="bx"><div class="fn" id="fn" role="list"></div><p class="out" id="out" aria-live="polite"></p></div>

Related patterns

Stacked Bars with Series Toggle

↗
Stacked Bars with Series ToggleData Visualization

Interactive Bar Chart

↗
Interactive Bar ChartData Visualization

Sortable Ranking Bars

↗
Sortable Ranking BarsData Visualization