All examples By author By category About

d3noob

Sankey diagram using names in JSON

This is a sankey diagram used as an example in the book D3 Tips and Tricks. It is based on a simpler version here.

It demonstrates the construction of a sankey diagram using d3.js from external JSON data that is formatted with node and link data using named values. It should be taken in context with the text of the book which can be downloaded for free from Leanpub.