Waterfall
Use it to explain a change: opening balance, what came in, what went out, closing balance. Totals stand on the baseline; changes float and connect with a dashed rule.
How to use it
Paste the toolkit from Get the code into your page first, then call the chart like this.
const chart = waterfall({
steps: [
{ label: 'Start', value: 4200, total: true },
{ label: 'Salary', value: 3100 },
{ label: 'Housing', value: -1210 },
{ label: 'Groceries', value: -438 },
{ label: 'End', value: 5652, total: true }
],
height: 300,
label: 'How the balance changed in September'
});Options
What you can pass to this chart.
steps
[{ label, value, total?, colour? }]. value > 0 adds, value < 0 subtracts; total: true restarts from zero at that value.
height
Chart height.
label
aria-label.
More charts like this
Other charts in the “Comparing” group.
Diverging bars
What went up and what went down: bars either side of a zero line, biggest rise at the top.
View chart →Slope chart
Two moments side by side, one line per item, so rises and falls read at a glance.
View chart →Bump chart
Rank over time: who is first this week, and how each one got there.
View chart →Want charts or dashboards like these in your own product?
Tell me what you are trying to see and I can help work out the right approach, from the data behind it to the screen in front of people.