This example created for development purposes using the d3-sankey plugin for D3 4.0.
Based on xaranke's port of Mike Bostock's Sankey Diagram with drag behavior enabled and several fixes for the d3 version 4.x release.
It would be nice if d3-sankey's value
accessor was configurable, to avoid creating the empty_links
data structure in the code below.
https://d3js.org/d3.v4.min.js
https://unpkg.com/d3-sankey@0.4.1