bwrite( charts ) Polski

Sankey diagram

Where amounts flow from and to, as bands as thick as the amount: a budget, traffic, energy, from a table of three columns.

A sample to start from: change the table and the chart is saved in this browser.

Three columns: from, to and an amount. The same name links the steps.

ABC
1
2
3
4
5
6
7
8
9

8 rows, names in row 1, labels in column A, 1 columns of numbers.

How to make a Sankey diagram

A Sankey diagram shows how amounts flow from one place to another, as bands as wide as the amount. Income splits into a budget, the budget into rent, food and savings, savings into a holiday and a safety net. One picture instead of a paragraph of explanation.

Preparing the table

Three columns: from, to and an amount. The same name connects the steps: "Budget" as a target in one row and as a source in another makes a chain. Repeated from-to pairs are added up. A flow cannot go round in a circle, and the page says so if it does. For example:

FromToAmount
SalaryBudget4200
Side jobBudget600
BudgetRent1400
BudgetFood650
BudgetBills310
.........

Paste your own table into any cell on the "Data" tab, straight from Excel or Google Sheets, or type over the sample. The chart redraws as you type. Under the cells you can see how the table was read: whether the first row holds names and which column holds the labels. If the guess is wrong, change "First row" or "First column". On "Look" you set the title, colours and number format; on "Download" you get a PNG in the size you need, an SVG, or the picture copied straight to the clipboard.

Keep the flow one-way

Name each step the same way every time ("Budget", not "budget" in one row and "Budget" in another), or it becomes two separate boxes. Hover over a band to see its amount, over a box to see the total going through it.

Examples

  • A household budget from income to spending and savings.
  • Website traffic from sources to pages.
  • Energy from sources to uses.

Who it is for

Anyone explaining where something comes from and where it goes: finance, marketing, energy, logistics.