panelui

Funnel Chart

Component

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>
  );
}

Dependencies

More by panelui

View all
  • Spinner

    Spinner

    8
  • Flow

    Flow

    4
  • Hex Chart

    Hex Chart

    2
  • Treemap Chart

    Treemap Chart

    1
  • Soundwave

    Soundwave

    1
  • Share

    Share

    1
  • Scatter Chart

    Scatter Chart

    1
  • Pyramid Chart

    Pyramid Chart

    1