D3 Sankey Observable. It demonstrates the construction of a sankey diagram using d3 js from external csv data that is formatted using just link data and named values. It is based on a simpler version here.
D3 Sankey Diagram Josephstreet Observable from observablehq.com
Input data must be a nested list providing the nodes and the links of the network. D3 js is a javascript library for manipulating documents based on data. This is a sankey diagram used as an example in the book d3 tips and tricks.
It is based on a simpler version here.
The following post is a portion of the d3 tips and tricks document which is free to download. Sankey plots are built thanks to the d3 sankey plugin. D3 s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework combining powerful visualization components and a data driven approach to dom manipulation. If you ve ever gotten frustrated trying to figure out why your code doesn t work or how someone.