Instrument · Free · Recharts or ECharts

Waterfall chart: pick what's on it

Every option is a prop of the installed chart. The preview and the code use the same props, so what you copy is what you see.

Options, preview and code

Engine
Presets
Data
Surroundings
Tooltip
Colours
Behaviour
Feel
States

Revenue · September

How MRR moved this month

From 84,000 to 92,700: +8,700 (+10.4%). Biggest rise: New (+12,400). Biggest fall: Churn (−6,800).

Waterfall of 6 bars. From 84,000 to 92,700: +8,700 (+10.4%). Biggest rise: New (+12,400). Biggest fall: Churn (−6,800).
ItemChangeLevel after
Code for this chart

"use client";

// Install: npx shadcn@latest add https://beautifulcharts.dev/r/waterfall-chart.json
import { WaterfallChart } from "@/components/beautiful-charts/themes/instrument/recharts/waterfall-chart";
import type { ChartConfig } from "@/components/beautiful-charts/core/contracts";

const data = [
  { item: "Start MRR", amount: 84000, total: true },
  { item: "New", amount: 12400 },
  { item: "Expansion", amount: 5200 },
  { item: "Contraction", amount: -2100 },
  { item: "Churn", amount: -6800 },
];

const config = {
  amount: { label: "MRR" },
} satisfies ChartConfig;

export function MyChart() {
  return (
    <WaterfallChart
      data={data}
      config={config}
      nameKey="item"
      valueKey="amount"
      totalKey="total"
      showTotal="End MRR"
      eyebrow="Revenue · September"
      title="How MRR moved this month"
    />
  );
}