block by HarryStevens 0a437a96e9a2aa2408adbd32b1853cc3

Sankey from CSV

Full Screen

Create a Sankey diagram from a CSV file. I got most of this code from d3noob’s block, but I added the code to convert the CSV data into the format required by d3-sankey.

index.html

data.csv

sankey.js