block by d3noob 31665aced416f27abca4fa46f5f4b568

Sankey Diagram with v7

Full Screen

The above example is intended to demonstrate drawing a simple Sankey diagram using v7 of d3.js. It uses the 0.12.3 version of the Sankey plugin.

This is one of the code samples for the update to the book D3 Tips and Tricks to version 7 of d3.js.

index.html

d3-sankey.min.js

sankey.js

sankey.json