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#
| Prop | Type | Default |
|---|---|---|
stages | FunnelStage[] | - |
datasets | FunnelDataset[] | DATASETS |
orientation | "horizontal" | "vertical" | "auto" | "auto" |
title | string | "Visitors to paid" |
compareLabel | string | "Last month" |
format | (value: number) => string | defaultFormat |
showCompare | boolean | true |
className | string | - |
Dependencies#
npm
motion
Built from
Related charts components#
Area ChartDependency free SVG area chart for React with a smoothed line, dashed grid, gradient fill and an optional highlighted point. Strokes stay crisp at any size.Bar ChartLightweight React bar chart with rounded bars, dashed gridlines and labels. Hovering a bar dims the rest and shows its value; the peak is highlighted first.Chart CardCard wrapper for charts with a title, optional description and a minimum height body. Pairs with the area, bar and donut charts in a React dashboard.Chart LegendWrapping chart legend with small color swatches and labels. Pass colors per series or fall back to accent, success, warning and danger theme tokens.Chart Tooltip CardTooltip card for charts showing a title and label and value rows with tabular numbers. Drop it into any chart library's custom tooltip slot.Donut ChartSingle value donut chart in SVG that fills an accent ring to a percentage of max and prints the percent in the middle. Labelled as an image for screen readers.
All chart components