About
Where a population drained away, one step at a time.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Funnel Chart to your project and fits it to your theme.
Code
How Funnel Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import { FunnelChart, type FunnelDatum } from '@/components/ui/panel-funnel-chart';
const CHECKOUT: FunnelDatum[] = [
{ label: 'Viewed', value: 41800 },
{ label: 'Basket', value: 18240 },
{ label: 'Checkout', value: 9420 },
{ label: 'Paid', value: 5240 },
];
export default function FunnelChartConversion() {
return (
<div className="flex w-full max-w-lg flex-col gap-6">
<FunnelChart data={CHECKOUT}>
<FunnelChart.Header title="Share of the first stage" />
<FunnelChart.Stages />
<FunnelChart.Labels share="top" />
</FunnelChart>
<FunnelChart data={CHECKOUT}>
<FunnelChart.Header title="Share of the stage above" />
<FunnelChart.Stages />
<FunnelChart.Labels share="previous" />
</FunnelChart>
</div>
);
}








