Skip to content

::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 minimal panel below, rendered

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 ::SANKEY
FROM (VALUES ('Ads','Visit',600),('Search','Visit',400),('Visit','Trial',300),('Visit','Gone',700),('Trial','Paid',120)) t(a, b, n);

Edit it in the builder ↗

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)'::TITLE
FROM (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)

::PIE · ::DONUTCHART · ::GAUGE · ::RADAR · ::TREEMAP