Skip to content

Funnel

GraphFunnel

Steps get narrower as values drop. Percentages compare to the first step.

Command

pnpm dlx shadcn@latest add <origin>/r/graph-funnel.json

Install

Percentages compare to the first step. stage dims the other rows.

[ INSTALL ]
  1. docs12,400
  2. copy4,10033%
  3. ship8607%

Signup

Shorter bar width. Same percentage logic.

[ SIGNUP ]
  1. visit8,000
  2. start2,40030%
  3. verify96012%
  4. paid1802%

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge of the frame.
stepsFunnelStep[]label, value, and optional display string for the count.
ticksnumber20Width of the first bar, in characters.
stagestringStep label to focus. Other rows recede.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
cornerstring"+"Character at each corner of the frame.
classNamestringPassed to the outer frame.