::SANKEY
Dashboards: browser · CLI · servers
Community extension: anofox_render


Flows between stages: ::ORIGIN → ::DEST, link width by the measure; nodes stack in columns.
Also spelled: ::SANKEYCHART
The data it needs
Section titled “The data it needs”One row per link: ::ORIGIN → ::DEST, the measure is its width. Nodes that are both a destination and an origin chain into columns.
SELECT a ::ORIGIN, b ::DEST, n ::SANKEYFROM (VALUES ('Ads','Visit',600),('Search','Visit',400),('Visit','Trial',300),('Visit','Gone',700),('Trial','Paid',120)) t(a, b, n);In an example
Section titled “In an example”From Which chart fits which question? — open it in the builder ↗:
SELECT 12::COL; SELECT src::ORIGIN, dst::DEST, n::SANKEY, 'Where visits go (::SANKEY)'::TITLEFROM (VALUES ('Search','Product',520), ('Ads','Product',310), ('Email','Product',120), ('Product','Cart',540), ('Product','Left',410), ('Cart','Order',380), ('Cart','Left',160)) v(src, dst, n)Related
Section titled “Related”::PIE · ::DONUTCHART · ::GAUGE · ::RADAR · ::TREEMAP