FunnelChart
Stage volumes with drop-off. Length-proportional bars, never a trapezoid — area misleads.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Stage volumes with drop-off.
Accessibility
Each chart ships an accessible fallback (a visually-hidden data table / aria-label summary) so the data is available to screen readers, not just sighted users. Colour is paired with shape/label, never used alone.
Install and import
npx shadcn@latest add @prism/funnel-chart
import { FunnelChart } from '@/components/prism/FunnelChart';
In a no-build prototype, read it from the bundle instead: const { FunnelChart } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
stages | FunnelStage[] | Yes | In funnel order — entry stage first. |
showDropoff | boolean | — | Show the loss between consecutive stages. Default true. |
showRate | boolean | — | Show each stage as a percentage of the entry stage. Default true. |
rowHeight | number | — | Bar height in px. Default 22. |
formatValue | (value: number) => React.ReactNode | — | |
caption | string | — | |
className | string | — |