An example of Sankey using an updated version of the d3-sankey-circular library, which fixes a few issues with the layout of links, and fits the entire sankey within the specified size (so it doesn't rely on margins).
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-scale-chromatic.v1.min.js