Signup funnel
- Visited pricing24,800 (100%)
- Started signup9,120 (37%)−63% from previous step
- Verified email6,340 (26%)−30% from previous step
- Created project4,210 (17%)−34% from previous step
- Upgraded920 (4%)−78% from previous step
Installation
$ pnpm dlx shadcn@latest add @synccn/funnel-chartFirst time in this project? Connect synccn with one command.
Usage
import { FunnelChart } from "@/components/ui/data-viz";<FunnelChart data={steps} />API reference
Generated from the component's TypeScript types, so it always matches the code.
FunnelChart
Conversion funnel: each stage narrows with its drop-off shown. data: [{ label, value }]
PropTypeDescription
- datarequired
{ label: string; value: number }[]Steps, from first to last.
- format
(value: number) => React.ReactNodeDefault
(v) => v.toLocaleString()Formats each value.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label
More data
Data TableSorting, search, column visibility, selection and paging.Bar ChartResponsive SVG bars with tooltips and an entrance.Area ChartSmooth area with a crosshair tooltip.SparklineTiny trend line coloured by direction.HeatmapContribution-style calendar of daily counts.KanbanDrag cards between columns.