Skip to content
synccn

Funnel Chart

New

Conversion steps with drop-off between each.

Signup funnel

  1. Visited pricing24,800 (100%)
  2. Started signup9,120 (37%)
    −63% from previous step
  3. Verified email6,340 (26%)
    −30% from previous step
  4. Created project4,210 (17%)
    −34% from previous step
  5. Upgraded920 (4%)
    −78% from previous step

Installation

$ pnpm dlx shadcn@latest add @synccn/funnel-chart

First 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 }]

  • datarequired
    { label: string; value: number }[]

    Steps, from first to last.

  • format
    (value: number) => React.ReactNode

    Default (v) => v.toLocaleString()

    Formats each value.

  • className
    string

    Extra 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

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-label