Controls

Funnel Chart

Effect
Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Funnel Chart
Signup funnel
  1. Visited12.4K
  2. Signed up3.1K
  3. Activated1.8K
  4. Paid640

Funnel Chart

Centered rounded bars that narrow step by step, with the rate between each step.

Installation

npx shadcn@latest add ikislay/pixel-ui/funnel-chart

How to use

import { FunnelChart } from "@/components/ui/funnel-chart"
const data = [
{ label: "Visited", value: 12400 },
{ label: "Signed up", value: 3100 },
{ label: "Paid", value: 640 },
]
export function Demo() {
return <FunnelChart label="Signup funnel" data={data} />
}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
data*
{ label: string; value: number }[]

The steps in order. Each bar is sized against the first step.

label*
string

Names the chart for screen readers and captions its data table.

format
(value: number) => string

Formats values wherever the chart shows them. Defaults to short numbers like 12.4K.

color
string

Any CSS color. Later steps show it a little lighter.

className
string

Merged onto the root element.