What is a Sankey chart, and when should you use one?
A Sankey chart shows how an amount flows from source to target. Where it helps, how the data should look and how to make one.
Updated , 5 min read
A Sankey chart, also called a Sankey diagram, shows how an amount moves between steps. The width of each band is proportional to the amount, so the largest flow is visible before anyone reads a number. It answers two questions: where does it come from, and where does it go?
The diagram is named after Captain Matthew Sankey, who used it in 1898 to show the energy losses of a steam engine.
Where Sankey charts are used
| Field | What flows |
|---|---|
| Energy | From sources through conversion to use and loss |
| Finance | From revenue to costs and profit, or from a budget to departments |
| Product and web | Visitors from page to page |
| Supply chain | Material from supplier to customer |
| Sales and hiring | Leads or applicants from stage to stage |
How the data should look
One row per flow, with three columns: source, target and value. A name that is a target in one row and a source in another becomes a middle step.
| source | target | value |
|---|---|---|
| Coal | Electricity | 20 |
| Gas | Electricity | 45 |
| Electricity | Industry | 55 |
How to make one
- Attach the CSV or Excel file.
- Ask for a Sankey diagram, for example "Show the energy flows".
- Color the nodes or highlight the path that carries the message.
- Export as PNG, JPG, PDF or SVG.
The Sankey diagram maker page has an example and sample data. Excel has no Sankey chart type: three ways around that.
When not to use one
- You only compare totals. A bar chart is easier to read.
- The flow loops back. A Sankey chart runs in one direction.
- You have more than about 15 nodes. Group the small ones first.


