Skip to content
nexubDesign System
v11.9.0

Components · Data Display

Funnel

BetaAdded v4.5.0

Drop-off through ordered steps, with conversion from the first step.

import { Funnel } from '@nexub/react';
View as Markdown

Playground

Props

Signup funnel, October
Visited12,400100% of Visited
Started signup4,10033% of Visited
Verified email2,90023% of Visited
First payment1,24010% of Visited
TSX
<Funnel className="w-full" data={…} title="Signup funnel, October" />

Examples

Signup funnel

Signup funnel, October
Visited12,400100% of Visited
Started signup4,10033% of Visited
Verified email2,90023% of Visited
First payment1,24010% of Visited

Conversion and drop-off

`show="both"` with `tableView`.

Signup funnel, October
LabelValue
Visited12,400, 100% of Visited
Started signup4,100, 33% of Visited · 33% of previous step · 8,300 dropped off
Verified email2,900, 23% of Visited · 71% of previous step · 1,200 dropped off
First payment1,240, 10% of Visited · 43% of previous step · 1,660 dropped off
Show as table
Signup funnel, October
LabelValue
Visited12,400 · 100% of Visited
Started signup4,100 · 33% of Visited · 33% of previous step · 8,300 dropped off
Verified email2,900 · 23% of Visited · 71% of previous step · 1,200 dropped off
First payment1,240 · 10% of Visited · 43% of previous step · 1,660 dropped off

Several series

Web and app side by side, with conversion.

Signup funnel by channel
LabelWebApp
Visited12,400, 100% of Visited8,200, 100% of Visited
Started signup4,100, 33% of Visited · 33% of previous step3,900, 48% of Visited · 48% of previous step
First payment1,240, 10% of Visited · 30% of previous step1,500, 18% of Visited · 38% of previous step

States

  • Signup funnel, October
    Visited12,400100% of Visited
    Started signup4,10033% of Visited
    Verified email2,90023% of Visited
    First payment1,24010% of Visited
    default
  • loading

Props

Props
PropTypeDefaultDescription
datarequiredFunnelDatum[]—Steps in order, largest first.
titlerequiredstring—Accessible name and table caption.
data[].valuesRecord<string, number>—11.3: the other series' numbers for this step, keyed by series key.
seriesFunnelSeries[]—11.3: several series per step, drawn as thin bars with a legend. key: 'value' reads each step's value; other keys read values[key]. The interactive tooltip uses value.
show'both' | 'drop-off' | 'conversion'—11.3: visible numbers under each step: share of the first and the previous step, how many dropped off, or both. Unset draws the bars only.
tableViewstring | boolean—11.3: a "Show as table" disclosure under the drawing with the same data; a string sets its label.
color1 | 2 | 3 | 4 | 5 | 6 | 7 | 81
emptyStateReact.ReactNode—Shown when there is no data. Defaults to the "no data" message.
errorStateReact.ReactNode—Shown in place of the data when a load failed, for example an ErrorState with a retry action. Wins over loading and empty.
interactiveboolean—A crosshair and tooltip that follow the pointer, and arrow-key navigation between points.
loadingboolean—Shows a skeleton in place of the data and sets aria-busy.
onPointClick((point: ChartPoint<{ label: string; value: number; }>) => void)—Click, tap, or Enter/Space on a point. Turns interactive on unless it is set to false.
valueFormat((value: number) => string)fmt

Accessibility

Screen reader

  • The drawing is hidden from assistive tech; a visually hidden table or caption carries every value.

On iOS & Android