Skip to content
Browse docs and components

Waterfall Chart

waterfall-chart

How a starting amount becomes a final one, on TanStack Charts: revenue bridged through new business and churn, a budget through its line items. Each change floats from where the last ended, gains and losses in their own hues, with a closing total.

Responsive

Install

$npxshadcnadd@forme/waterfall-chart

Adds the component, its registry dependencies, and the token stylesheet you import once.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

WaterfallChart

How a starting amount becomes a final one, step by step: revenue bridged through new business and churn, a budget through its line items.

PropTypeDefaultDescription
data*readonly Row[]—The steps in order. The first is the starting amount; the rest are changes.
index*keyof Row & string—The field that names each step.
value*NumericKey<Row>—The amount: the start for the first row, a signed change for the rest.
label*string—Accessible name. Say what is being bridged from and to.
totalstring—A closing bar for the result, with this name. Omit to end on the last change.
formatValue(value: number) => stringplain
heightnumber280
classNamestring—