Sankey diagramWhere the amount goes.
Bands that split and join, each as wide as what flows through it. Where the money, energy or people go, in one picture.
- Answers Where does it go?
- Your data from, to and amount per flow
- Flows about 3 to 30
- Columns 2 to 5 steps
- Excel and Power BI a custom visual
What is a Sankey diagram?
A Sankey diagram draws flows between groups as bands. Each band is as wide as the amount that moves, so the total on the left splits into its parts on the right, and nothing gets lost along the way. It answers two questions at once: where does it come from, and where does it go.
A household puts its monthly income into one budget and spends it. Rent takes the widest band, a third of everything; a quarter goes to savings.
Why use a Sankey diagram?
Because a total that splits is hard to follow in a table.
- Where it goes. Every part of the total has its own band.
- Sizes by width. The widest band is the biggest flow.
- Nothing hidden. What goes in comes out: the widths add up.
- Several steps. Income to budget to spending, in one picture.
How does a Sankey diagram work?
Four steps turn a list of flows into bands.
- Step 1 of 4List the flowsEach flow is a from, a to and an amount: salary to budget, 3,200 €.
- Step 2 of 4Place the groupsSources on the left, then each step in its own column, each as tall as what passes through.
- Step 3 of 4Draw the bandsEach flow as a band, as wide as its amount, from one group to the next.
- Step 4 of 4Colour by sourceBands keep the colour of where they come from.
What are the parts of a Sankey diagram?
Four parts, and each one has a job.
- Groupa source, step or end, as tall as its total
- Bandone flow from one group to the next
- Widththe amount that flows
- Endwhere the amount finally goes
How do you read a Sankey diagram?
Three looks, in this order.
- Start on the left4,000 € comes in: four fifths of it from the salary.
- Follow the widest bandRent takes 1,300 €, almost a third.
- Find what is left1,000 € is saved: a quarter of the income.
What kinds of Sankey diagram are there?
The same budget, three ways.
- Kind 1By sourceBands coloured by where they start.
- Kind 2One colourCalm, when the sources do not matter.
- Kind 3One flow litThe other bands fade, for one story.
Energy charts (from fuel to use and waste), web traffic (from source to page to sale) and cost breakdowns are the classic uses. A Sankey with many steps over time is an alluvial diagram.
When should you use a Sankey diagram?
When a total splits, joins or moves, and the size of each flow matters.
- an amount moves from groups to groups
- you need where it comes from and where it goes
- the totals add up
- there are about 3 to 30 flows
- it is one split with no steps (a bar or pie chart)
- flows go back and forth (a chord diagram)
- the order of steps is a process (a flowchart)
Sankey diagram or bar chart?
Bands for the path, bars for the sizes.
The bar chart lists every flow, but the steps vanish: income and spending sit in one list as if they were the same kind of thing. The Sankey diagram keeps the path, so the reader sees two sources join and split again.
How do you make a Sankey diagram?
A table of from, to and amount, and a custom visual.
Excel has no Sankey chart; add-ins or a stacked area trick get close. In Power BI, the Sankey chart custom visual from AppSource takes a source column, a destination column and a weight (custom visuals in Power BI). For one total split step by step, Power BI's decomposition tree is a built-in cousin.
What goes wrong with Sankey diagrams?
The most common mistake, and its fix: too many thin bands.
- dozens of thin bands cross each other
- no path can be followed
- group small flows into "Other"
- keep about 3 to 30 bands
- order groups to cut crossings
| Mistake | Why it hurts | Fix |
|---|---|---|
| Too many bands | A tangle nobody can follow | Group small flows into "Other" |
| Totals that do not add up | Readers lose trust | What goes in comes out |
| Random colours | Paths cannot be followed | Colour by source or by end |
| No numbers | Widths are hard to judge exactly | Write totals beside the groups |
| Flows that go back | Bands loop over the picture | A chord diagram for back and forth |
Every chart for “Where does it go?”
- Flows between groupsAlluvial diagramHow groups change across several stages, as flowing bands.
- Flows between groupsChord diagramFlows between items around a circle.
- StepsFunnel chartBars that shrink step by step, for how many make it through.
- StepsFlowchartBoxes and lines for the steps and choices in a process.
- PlansGantt chartTasks as bars on a calendar, for a plan and its dates.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.