block by d3noob 3df870cdcb921e51e9f8811430f53042

Sankey diagram using a csv file with v5

Full Screen

This is a sankey diagram used as an example in the book D3 Tips and Tricks v5. It is based on a simpler version here.

It demonstrates the construction of a sankey diagram using d3.js from external csv data that is formatted using just link data and named values.

index.html

sankey.csv

sankey.js