WaterfallChart

Bridge chart for totals, increases, decreases, and final net movement.

stable

Quick Preview

Cash bridge

Opening balance to net position

Usage

Use WaterfallChart when you want the full Figma card: title, description, plot, and legend.

<WaterfallChart
  data={data}
  title="Cash bridge"
  description="Opening balance to net position"
/>

Use WaterfallChartPlot when the chart lives inside custom chrome.

<WaterfallChartPlot data={data} />

Examples

Default WaterfallChart

Totals anchor to the baseline. Middle steps float between running totals and are linked with connectors.

Cash bridge

Opening balance to net position

Horizontal

Use horizontal orientation for long labels or denser step counts.

Revenue movement

Long labels read better horizontally

Plot Only

The plot is exported separately so consumers do not have to use ChartCard.

Plot only

Use the chart without ChartCard chrome.

Increase
Decrease
Total

Props

Prop/APITypeDefaultDescription
dataWaterfallChartDatum[]-Ordered bridge steps. total values are absolute; increase/decrease values are deltas.
size`"sm""md""lg"`
orientation`"vertical""horizontal"`"vertical"
legend`"right""bottom"false`
showValuesbooleantrueShows exact values on bars.
showTooltipbooleanfalseEnables the shared Recharts tooltip.
valueFormatter(value, context) => ReactNodegrouped number with signs for deltasFormats bar values.
categoryFormatter(label, datum) => ReactNodeidentityFormats category labels.
domain[number, number]inferred from all running totalsOverrides the value scale.
classNamestring-Local layout or spacing overrides.
native/root propsReact component props-Passed through to the root element.

Accessibility

  • Keep steps in chronological or logical order so the bridge tells a coherent story.
  • Reserve type="total" for genuine subtotals such as opening and net values.
  • Do not rely on color alone; keep legend and value labels visible when exact comparison matters.

On this page