Funnel Chart

A React funnel chart with horizontal or vertical stage bars, conversion rates and drop-off between stages, an optional comparison outline and bars that spring to new data.

src/registry/ui/funnel-chart.tsx/r/funnel-chart.json

Installation#

bash
npx shadcn@latest add @minidev/funnel-chart

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/funnel-chart.json

Usage#

tsx
import { FunnelChart } from "@/components/ui/funnel-chart"

export function Example() {
  return <FunnelChart />
}

API reference#

FunnelChart props
PropTypeDefault
stagesFunnelStage[]-
datasetsFunnelDataset[]DATASETS
orientation"horizontal" | "vertical" | "auto""auto"
titlestring"Visitors to paid"
compareLabelstring"Last month"
format(value: number) => stringdefaultFormat
showComparebooleantrue
classNamestring-

Dependencies#

npm

motion
All chart components