block by d3noob 43f405e7b3ab82ad2ffd6f7f0ec6b25f

Sankey diagram with full motion nodes in v5

Full Screen

The above example is intended to demonstrate drawing a simple Sankey diagram using v5 of d3.js. It uses Jason Davies’ version of the Sankey plugin.

This particular version allows the dragging of nodes in the x and y direction. Have a play!

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

index.html

sankey.js

sankey.json