FunnelChart

Conversion funnel. Bars open from the center in a cascade, each with its share of the step before. Charts.

Open playground
  • Visited12,400
  • Signed up4,100 33%
  • Activated2,300 56%
  • Paid780 34%

About

FunnelChart is a React component in the Charts category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { FunnelChart } from "@ashutoshswamy/smoui" and set data, prefix.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { FunnelChart } from "@ashutoshswamy/smoui";

<FunnelChart data={[{ label: "Visited", value: 12400 }, { label: "Signed up", value: 4100 }]} />

Props 2

data

Steps, widest first.

{ label: string; value: number }[]
prefix / suffix

Wrap values, or pass `format`.

string