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.
Unlike version 1, this version colors the links according to the source.
forked from HarryStevens's block: Sankey from CSV II
forked from giguerre's block: Sankey from CSV II
forked from giguerre's block: Sankey from CSV II
forked from giguerre's block: Sankey and csv source target
https://d3js.org/d3.v4.min.js