The above example is intended to demonstrate drawing a simple Sankey diagram using v6 of d3.js. It uses the 0.12.3 version of the Sankey plugin.
This is one of the code samples for the update to the book D3 Tips and Tricks to version 6 of d3.js.