Funnel chart
A React component in Beamline's Charts & data-vis category.
People or deals moving through ordered steps, each step a bar narrowing from the first: the part lost between two steps stays beside the next as a fading ghost with its count, the step's conversion and the conversion from the start read between them, a previous period shows as a mark on each bar with its change, and a step never measured is hatched rather than read as zero.
Use it for
- A sequence where each step keeps part of the one before: visit → signup → activation → paid, lead → deal → won, cart → checkout → order.
- Finding the step that loses the most, and whether it got better against last period.
Not for
- Flows that branch or merge between stages (sankey-chart).
- Independent categories without an order (bar-chart or bar-list).
- Shares of one whole (pie-chart or waffle-chart).
Anatomy
- chart frame: title, description, table button (every step with value, step conversion, from start and previous)
- step row: name, value, the bar (centred, or from the start edge), the previous period's mark and change
- between steps: the step's conversion and the count lost, with the lost part kept as a ghost beside the next bar
- footer: conversion from the first step to the last
- conversion variant: every track has the same full width; no lost-count line or ghost; each row names its count, share of the first step and conversion from the immediately preceding step
Variants
- 0: shape: centred (a funnel) · aligned (bars from the start edge, easier to compare lengths)
- 1: previous: the same steps last period (marks and ▲ ▼ change)
- 2: format and percent format
- 3: variant: dropoff (default, lost-count ghosts) or conversion (equal-width tracks, count and share of the first step on the left, one previous-step conversion on the right)
States
- loading (bars of falling width waiting)
- empty
- not measured (a null step: hatched, its conversions read “not measured”)
- active step (hover, focus or pinned: others fade toward the card, its numbers lead)
- data changed (bars glide to their new widths, the lost parts drain)
- table view
- Loss and ghost width use the immediately previous measured step; an unknown boundary has no numeric loss or drop-off ghost.
Keyboard
- Tab reaches the steps as one list; ↑ ↓ move between steps, Enter pins one, Escape unpins
- The table view carries every number for a screen reader
Motion
Bars grow from the centre (or the start edge) in turn on first draw. New data glides every bar to its width over the chart duration; a step that loses people keeps the lost part as a ghost that drains, a step that gains arrives lit (the shared delta grammar). Pointing fades the other steps at once. Reduced motion shows the result at once; nothing runs at rest.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
steps (required) | FunnelStep[] | — | { key, label, value: number | null } in order. |
previous | (number | null)[] | — | The same steps last period, in the same order. |
previousLabel | string | — | What the previous period is called. Default "Previous period". |
shape | "centred" | "aligned" | — | centred (a funnel, default) or aligned (bars from the start edge). |
format | (value: number) => string | — | How counts read. |
percent | (share: number) => string | — | How conversions read; share is 0–1. |
active / defaultActive / onActiveChange | string | null | — | The pinned step's key. |
title / hideTitle / description / table / loading / emptyLabel / actions | … | — | The chart frame every chart shares. |
className / classNames / style / ref | string / ChartClassNames / CSSProperties / Ref<HTMLElement> | — | className: Classes on the documented visual root; no override by default. classNames: Classes for the named visual parts; no overrides by default. style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default. |
color | string | — | A CSS colour for the bars; the first series hue by default. |
active | string | null | — | |
defaultActive | string | null | — | |
onActiveChange | ((key: string | null) => void) | — | |
title (required) | string | — | |
hideTitle | boolean | — | |
description | ReactNode | — | |
table | boolean | — | |
loading | boolean | — | |
actions | ReactNode | — | |
className | string | — | Classes on the documented visual root; no override by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no overrides by default. |
ref | Ref<HTMLElement> | — | Receives the documented native target or imperative handle; omitted by default. |
classNames | Partial<Record<"root" | "header" | "heading" | "title" | "description" | "controls" | "… | — | Classes for the named visual parts; no overrides by default. |
emptyLabel | string | — | What an empty chart says, in the product's own words ("No deploys yet"). Default: "No data for this range" on a chart over time, "No data yet" on the others. |
variant | "dropoff" | "conversion" | — | dropoff keeps loss ghosts; conversion uses full-width tracks and one previous-step rate. |
Built from
- Button
- Checkbox
- Chip group
- Dropdown menu
- Empty state
- Glow
- Kbd
- Label
- Pagination
- Search field
- Select
- Skeleton
- Spinner
- Table
- Tooltip
Used in
Dependencies
motion
Import
import { FunnelChart } from "@beamline/funnel-chart";
Get it
Funnel chart is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in Charts & data-vis
- Sankey chart: Flows between stages as bands whose width is the amount: sources to pages to outcomes, budgets to teams; hovering or focusing a node lights its flows and…
- Geo map: Values by country as a choropleth on the system's own world outline (no map service): classes from a sequential or diverging ramp with a legend you can…
- Streamgraph: Stacked flows over time around a centre baseline, with silhouette, wiggle, expand (shares) and zero offsets: a legend that turns layers on and off, a…
- Ridgeline: Distributions per group as overlapping density ridges (response time by region, order size by plan): an overlap control, median and p95 readouts per row…
- Treemap: Nested rectangles sized by value (spend by team, then service), squarified so tiles stay close to square: labels that fit or hide, hover and focus…
- Gantt chart: A plan as bars on a timeline: tasks grouped down the side, each bar from its start to its end with its progress, milestones as diamonds, arrows from each…
- Activity heatmap: A calendar of daily counts, one cell per day on a sequential ramp: weeks across, weekdays down, month and weekday labels, a legend scale, hatched days…
- Gauge: One value against a known range: a semicircle, a 270° dial or a full ring, filled or with a needle, coloured bands with their names (healthy, busy…
- Radial chart: Progress of a few measures toward their targets as concentric rings, full or half circle, with a centre readout and a list of each ring's value, target…
- Radar chart: A few series compared across the same five to eight dimensions as polygons on a polygon or circle grid; hover or arrow keys pick a dimension and read…
- Scatter chart: Two measures of many items against each other, one point per item, or a bubble chart when a third measure sizes the points: groups by colour and shape…
- Area chart: Amounts over time as filled areas: overlapping, stacked or as shares of 100%, five fills, two strokes, five curves, a range handle; gaps for missing…
- Composed chart: Different measures on one time axis: bars, lines and areas per series, a left and a right value axis with their own formats, and reference lines.
- Waffle chart: Units of a whole as a grid of cells by category (seats used of a plan, tickets by channel): a 10×10 grid by default, hatched cells for units whose…
- Slope chart: Change between two points in time per item, by value or by rank: labels on both sides that never collide, rising and falling told by the end marker (▲ ▼)…
- Line chart: Values over time as lines: curves, point markers, dashed series for forecasts, reference lines for limits and targets, an optional zero baseline and a…
- Bar chart: Amounts by category as bars: columns or rows, grouped, stacked or as shares, reference lines, five looks (rounded, cells, trace, isometric, monospace), a…
- Pie chart: A few shares of a whole as a pie or donut, with spaced slices, percent labels, a centre readout and a list of every slice with value and share; hovering…
- Sparkline: A compact trend beside its value: point along it or focus it and use ← → to read each point; nulls are gaps. TrendLine is the bare line.