Funnel Chart

How many pass each step of a process — visits, sign-ups, trials, purchases — with the conversion from the step before. Drawn as SVG by the component, rendered on the server and themed by the design tokens.

Part of @tectra-ng/charts (npm install @tectra-ng/charts, also included in tectra-ng).

Features10APIThemingAccessibility

Basic

Centred bars sized by value with soft connectors and the conversion from the step before. Hover a step: the tooltip adds its share of the first step.

Arrow keys move between values
Sign-up funnel. Funnel chart, 1 series, 5 values, conversion 3.1%
CategoryValueOf firstConversion
Visited the site12,400100%—
Opened pricing5,30042.7%42.7%
Started sign-up2,10016.9%39.6%
Confirmed email1,45011.7%69%
Paid3803.1%26.2%

Colorful

colorful gives every step its own palette colour; color on an item sets one step.

Arrow keys move between values
Hiring pipeline. Funnel chart, 1 series, 5 values, conversion 1.4%
CategoryValueOf firstConversion
Applied640100%—
Screened21032.8%32.8%
Interviewed6410%30.5%
Offered121.9%18.8%
Hired91.4%75%

Compact

Without labels, conversions and connectors the funnel shrinks to bars and values — handy in a small card. The tooltip still names each step.

Arrow keys move between values
Orders funnel. Funnel chart, 1 series, 3 values, conversion 32.3%
CategoryValueOf firstConversion
Carts48K100%—
Checkouts21K43.8%43.8%
Orders15.5K32.3%73.8%

Events

stageClick reports the clicked step with its value, its share of the first step and the conversion from the step before.

Arrow keys move between values
Click a part. Funnel chart, 1 series, 4 values, conversion 5.6%
CategoryValueOf firstConversion
Leads800100%—
Qualified34042.5%42.5%
Proposals12015%35.3%
Won455.6%37.5%

Click a step.

Loading and empty

loading keeps the size with a skeleton; empty items (or only zeros) show "No data".

No data

Live

New items redraw in place — bars and connectors slide to their new widths.

Arrow keys move between values
Shuffled data. Funnel chart, 1 series, 4 values, conversion 11%
CategoryValueOf firstConversion
Visits1,000100%—
Product views54054%54%
Carts17817.8%33%
Orders11011%61.8%

Accessibility

Tab to the chart: ↑/↓ walk the steps and each one is announced with its value and conversion; Home / End jump to the ends. The summary ends with the overall conversion; screen readers also get a hidden table.

Arrow keys move between values
Support tickets. Funnel chart, 1 series, 3 values, conversion 70.9%
CategoryValueOf firstConversion
Opened860100%—
Answered79091.9%91.9%
Solved61070.9%77.2%

Design tokens

dt sets the gap between rows (share of a row), the radius, the label column, the text and the connectors of one chart.

Arrow keys move between values
Course progress. Funnel chart, 1 series, 4 values, conversion 28.9%
CategoryValueOf firstConversion
Enrolled900100%—
Started72080%80%
Halfway41045.6%56.9%
Finished26028.9%63.4%

Pass through

pt reaches the parts — stage, connector, label, value, conversion, plot, tooltip and more.

Arrow keys move between values
App installs. Funnel chart, 1 series, 3 values, conversion 14%
CategoryValueOf firstConversion
Store views30,000100%—
Installs9,00030%30%
Accounts4,20014%46.7%

Unstyled

unstyled removes the tectra styles: no tokens, no rounding, no motion — the geometry, the colours, the tooltip and the keyboard stay, ready for your own CSS.

Arrow keys move between values
Unstyled chart. Funnel chart, 1 series, 3 values, conversion 25%
CategoryValueOf firstConversion
Step 1100100%—
Step 26060%60%
Step 32525%41.7%