Skip to content

Tree

A tree is a Sankey diagram where every node has a single parent. The first chart has one root that branches out into two groups of leaves. The second chart reverses every flow, so the same leaves merge back into a single root. priority pins the root to the first position in its column.

size decides how tall a node is when the flows through it do not add up. Here the groups send out more than they receive, so min sizes a node by its smaller side and max by its larger side.