Charts guide

FunnelChart

Series of decreasing stages drawn as funnel segments.

Install

npx shadcn@latest add @foldcn/funnel-chart

FunnelChart parameters

ParameterType / propsBehavior
childrenFunnelChild[]Funnel({ data, dataKey, nameKey?, fill?, label? }) supplies the stages.
dataHierarchyNode[]Optional direct stage data with name/value fields.
width / heightnumberSVG dimensions. Defaults to 700 × 433.
responsivebooleanFits the SVG to the available width.
title / classNamestringAccessible 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.

ImpressionClickVisitConsultOrder