Flow (sources to uses)
Use it to show the shape of a budget: income sources on the left, spending categories on the right. Each source is split across the uses in proportion, so it shows mix, not exact routing.
How to use it
Paste the toolkit from Get the code into your page first, then call the chart like this.
const chart = flow({
left: [
{ label: 'Salary', value: 3100 },
{ label: 'Side gigs', value: 450 }
],
right: [
{ label: 'Housing', value: 1210, colour: catColor('Housing') },
{ label: 'Groceries', value: 438, colour: catColor('Groceries') },
{ label: 'Saved', value: 1900, colour: 'var(--c9)' }
],
height: 340,
label: 'Where September money went'
});Options
What you can pass to this chart.
left
[{ label, value }] sources (drawn green).
right
[{ label, value, colour }] uses; the colour tints the ribbons.
height
Chart height. Width and label space follow the container.
label
aria-label. If either side is empty the chart shows a short sentence instead.
More charts like this
Other charts in the “Parts of a whole” group.
Funnel
A journey where each step can only lose people, with the drop-off between steps.
View chart →Stacked
Parts of a whole per period, one stable colour per category.
View chart →Donut
Share of a total, with the hovered slice read out in the centre.
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.