Sankey Diagram
A Sankey diagram shows how quantities flow from one set of stages to the next. Each band connects two nodes and its width is proportional to the amount that flows between them, so the biggest paths and the biggest losses are visible immediately.
With the makechart.io chart maker you can create one from an ordinary table: list each flow as a row, bind the stage columns in order and a value column, and the nodes and links are laid out for you. Adjust node alignment, link colors and labels in the Style panel, then export or share.
Data format
One row per flow. Bind two or more columns to path, in order from the first stage to the last; neighboring cells in a row become a link. Rows with the same endpoints are added together, and an empty cell is skipped.
| Field | Type |
|---|---|
pathrequired | Category (two or more columns) Stages of the flow, such as source, intermediate step and destination. The order you bind them is the order from left to right. |
valuerequired | Number Amount of the flow, which sets the width of the band. |
| source | via | target | value |
|---|---|---|---|
| Coal | Electricity | Industry | 30 |
| Coal | Electricity | Residential | 18 |
| Natural Gas | Industrial Heat | Industry | 14 |
| Oil | Transport Fuel | Transport | 40 |
| Renewables | Electricity | Residential | 8 |
When to use
- Energy, material or money flows, such as an energy balance or where a budget goes.
- User journeys and conversion funnels across several steps.
- Showing how one categorization maps onto another, like survey answers before and after.
When not to use
- Data that is not a flow or has no meaningful stages; a bar or stacked column chart is simpler.
- Too many nodes per stage, which turns the links into an unreadable tangle. Group small items into "Other".
- Comparing exact values between links; band widths give an overview, not precise numbers.
Tips
- node merge decides whether nodes with the same name are the same node (name) or separated by column (column); auto treats two columns as an edge list and three or more as stages.
- Use node align and node sort to tidy the layout, and link color (source, target or gradient) to make paths easier to follow.