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.
https://d3js.org/d3.v4.min.js