Funnel Chart
A composable funnel chart for showing how many people or items move through an ordered sequence of stages.
Overview
Use a funnel chart when the question is where people drop out of an ordered process: a signup flow, a checkout, a sales pipeline, or a hiring loop. Each stage is counted once, and every stage after the first is a subset of the one before it.
The default stepped variant draws each stage as a bar on a shared scale, with the volume lost since the previous stage shown as a lighter ghost above it. Bars on one baseline are easier to compare than the slanted edges of a classic funnel, and the conversion rate for every stage sits above its bar. The tapered variant draws the familiar narrowing shape for presentations where the silhouette matters more than precise comparison.
Anatomy
FunnelChart owns the stage data, colors, layout, and loading state. Stages render in data order. Add Funnel for the bars, Labels for the conversion rate and count above each stage, Axis for the stage names, Grid for dashed value guides, and Tooltip for the full breakdown of a stage: its count, its share of the first and previous stage, and how many dropped off.
Accessibility
A descriptive accessible name listing every stage, its count, and its conversion rate is generated when ariaLabel is omitted. The conversion labels are drawn in the foreground color and the drop-off ghost is a tint of the stage color, so the chart does not rely on hue alone. The tooltip is pointer-operated, so place any number people must act on in the labels or in nearby text.
Installation
Usage
The data is an ordered array with one row per stage. nameKey names the stage and dataKey selects the count and its chart config entry.
import { FunnelChart, type ChartConfig } from "honestui/charts";<FunnelChart data={data} config={chartConfig} nameKey="stage" dataKey="people">
<FunnelChart.Grid />
<FunnelChart.Axis />
<FunnelChart.Labels />
<FunnelChart.Tooltip />
<FunnelChart.Funnel />
</FunnelChart>A stage that has its own entry in config, keyed by its name, takes that color instead of the series color. Use this sparingly, for example to mark the outcome stage.
Horizontal Layout
Horizontal bars leave room for long stage names. This example sets calculateFrom="previous", so each label shows the step-to-step rate instead of the share of the first stage, which makes the weakest step easy to spot.
Tapered Variant
The tapered variant uses the classic funnel shape. Later stages fade so the shape reads as one narrowing flow. Its width encodes each count on the same scale as the first stage, but comparing slanted widths is harder than comparing bars, so prefer stepped when people need to compare stages closely.
Loading State
Pass isLoading to reserve the chart layout with neutral, descending bars and the same loading treatment as the other Honest UI charts.