Charts guide
FunnelChart
Series of decreasing stages drawn as funnel segments.
Install
npx shadcn@latest add @foldcn/funnel-chartFunnelChart parameters
| Parameter | Type / props | Behavior |
|---|---|---|
children | FunnelChild[] | Funnel({ data, dataKey, nameKey?, fill?, label? }) supplies the stages. |
data | HierarchyNode[] | Optional direct stage data with name/value fields. |
width / height | number | SVG dimensions. Defaults to 700 × 433. |
responsive | boolean | Fits the SVG to the available width. |
title / className | string | Accessible SVG label and wrapper class. |
Supports value-scaled Funnel segments, per-stage colors, and labels. Tooltip and animation remain open.
Examples
The first example is open. Expand Source inside an example to view its code. Other examples load when opened.