Skip to content

Funnel Chart

The steps people or leads go through, first to last, with how many reached each one, the share of the first or of the step before, the count lost and the largest drop marked.

On this page
Used for
  • Signup funnel
  • Sales pipeline steps
  • Checkout drop-off
  • Onboarding completion

Examples

Installation

npx knowns-ui@latest add funnel-chart
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

steps
{ label, n }[]
Each step and how many reached it, first to last.
note
"share" | "step"
Default"share"
share: the share of the first step and the count lost. step: the share that moved on from the step before.
layout
"stacked" | "row"
Default"stacked"
stacked: label and numbers over the bar, with a step number. row: label, bar and numbers on one line from 420px of container width.
highlightDrop
boolean
Defaulttrue
Marks the step that loses the most, in amber, with dropLabel.
format
(n) => string
Defaultgrouped digits
Format a count.
unit
string
Default"people"
What a count is, for the bar names: leads, deals.
dropLabel
ReactNode
Default"Largest drop"
The mark on the worst step.

One line per step

Accessibility

  • The steps are an ordered list. Each bar is a progressbar named by its step, count and share.
  • The largest drop is said in words next to the step, not only in colour.

What it handles

  1. 01Lists the steps first to last with how many reached each one.
  2. 02Notes either the share of the first step and the count lost, or the share that moved on from the step before.
  3. 03Marks the step that loses the most in amber and says so in words.
  4. 04Stacks the label and numbers over the bar, or puts label, bar and numbers on one line from 420px of container width.
  5. 05Formats counts your way and names each bar by its unit.
  6. 06Works out the numbers in pure helpers you can reuse: funnelRows and conversion.

States

First render
The bars at their values; nothing moves
none
Narrow card
The row layout stacks
none
No drop
No step is marked
none

Works with

When to use

When to use

  • Steps people or leads go through, with how many reached each and where the most were lost.
  • A pipeline card on a dashboard with the share that moved on at each step.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Funnel Chart to my app and wire it to my own data.
  • I need steps people or leads go through, with how many reached each and where the most were lost. Set that up with the Knowns UI Funnel Chart.
  • Which Funnel Chart props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "funnel-chart" }) and search_docs({ query: "funnel chart" }).

Need help?

Stuck on Funnel Chart, or found something off? We read every message.