block by alandunning 0f7b5a5d9cfa9344ec2b0c4b5e730193

Sankey diagram from formatted JSON

Full Screen

This is a simple sankey diagram used as an example in the book D3 Tips and Tricks.

It demonstrates the construction of a sankey diagram using d3.js from external JSON data using the sankey.js plugin. It should be taken in context with the text of the book which can be downloaded for free from Leanpub.

forked from d3noob‘s block: Sankey diagram from formatted JSON

index.html

sankey-formatted.json

sankey.js