block by syntagmatic 77c7f7e8802e8824eed473dd065c450b

Sankey Transitions

Full Screen

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.

index.html

energy.json