Skip to content
ChartslibraryUI Get Pro

Waterfall chart

A bridge from one total to another, with computed subtotals that always close.

When to use

  • Plan to actual bridges
  • Revenue to operating income walks
  • Last year to this year by driver

When not to use

  • The steps happen over time rather than as drivers – use Variance trend
  • Totals dwarf the steps so they become invisible; split the bridge or show steps only

Good practice

  • Start with a total; subtotals are computed, so the arithmetic always closes.
  • Set favorable="down" for cost bridges.
  • Keep to about 10 steps; group the rest.

Installation

Waterfall chart is a Pro chart.

Installation is part of Pro

The full source is included in the Pro download. Get Pro to install it with the CLI and use it in unlimited projects.

Unlock with Pro
Already have Pro?npx chartslibraryui add waterfall-chart --from ./chartslibraryui-pro

Usage

Usage examples are part of Pro

Every example on this page comes with its code in the Pro download. The props and data shape below are public.

Unlock with Pro

Data

An ordered list of steps: { label, value, kind: 'total' | 'step' | 'subtotal' }.

[{ label: "Plan", value: 8.2e6, kind: "total" }, { label: "Volume", value: 640000 }, { label: "Actual", kind: "subtotal" }]

Missing values are null. Invalid values make the chart say what’s wrong instead of drawing a misleading picture. How charts handle bad data

Props

Every chart also accepts the shared frame props: title, subtitle, source, height, mode, toolbar. Common API

export interface WaterfallChartProps extends FrameProps {
  data: WaterfallStep[];
  format?: FormatInput;
  /** Is an increase good? "down" for cost bridges. Default "up". */
  favorable?: Favorable;
  /** Value labels on bars. Default true. */
  labels?: boolean;
  /** Labels for the legend. */
  increaseLabel?: string;
  decreaseLabel?: string;
}
Pro

Variance chart

Actual vs plan per line item: levels and variance side by side, coloured by business direction.

Pro

Variance trend

Variance to plan by period, split into drivers either side of zero with the net marked.

Pro

P&L summary

A generic income statement table with variances plus a walk to the bottom line.