Where quantities come from and go.
import { Sankey } from "diagrammatic";Three columns: source, convert, use. Every ribbon as wide as its flow. The widths have to add up on every column.
Illustrative data. National energy balance, 2024. 114 TWh conserved across three ranks.
Solar, wind, and hydro become grid. Gas stays fuel. Homes drink only from the grid. Transport is still entirely bunker. Industry is the only demand that sips both.
- Use it for
- Distribution across stages: sources into channels into destinations.
- Watch out
- Links must conserve; leaks and rounding need explaining.
Motion
One sweep crosses the columns in order: every ribbon in the first stage runs together, then hands off to the next, so the flow reads left to right without arrows. Put data-dg-motion on the chart or any ancestor; see Motion.