Sankeys with circular links

Guus, a reader of this blog, DMed me to ask whether I “knew of any (open source) JavaScript libraries that can generate circular Sankey diagrams”?

Many of the Sankey diagrams I see on the web are created using d3.js by Mike Bostock. Typically these diagrams are left-to right oriented and have a column structure. What is less common are feedback loops or circular Sankey arrows, like the pink ones in the figure below.

The place to look for is Tom Shanley’s Block.

Here you can find many samples for:

Guus, I hope you can find what you are after there. Enjoy!

1 Comment

  1. Tom Shanley says:

    Thanks for the plug. I’ve also been working on an update to this, and the current thinking is shown in my Observable notebooks
    https://observablehq.com/@tomshanley/sankey-circular-deconstructed
    https://observablehq.com/@tomshanley/sankey-circular-deconstructed-part-2-manual-scaling/2

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.