WaterfallChart
Show how a starting balance becomes an ending one.
Click a mark to pin its value
View data
| Label | Value | Balance |
|---|---|---|
| Opening | 240 | 240 |
| Sales | 160 | 400 |
| Refunds | -48 | 352 |
| Upsell | 72 | 424 |
| Churn | -35 | 389 |
| Closing | 389 | 389 |
<WaterfallChart title="Revenue bridge" data={data} />Usage
Data
data takes { label: string; value: number; total?: boolean; color?: string }[]. Input arrays are never mutated and order is preserved.
- Values are signed changes to a running balance.
- Set
total: trueto treat a bar as an absolute balance from zero, such as an opening, subtotal or closing bar. - Use
negativeColorto change the decline color. The data table and pinned caption include running balances.
Every chart also accepts the common props: description, height, color, variant, animate, formatValue and className.