block by micahstubbs 6a366e759f029599678e293521d7e26c

rCharts Examples Sankey Particles

Full Screen

a Sankey Particles visualization of the rCharts Examples data from @timelyportfolio

this bl.ock forks Sankey Particles with only inline styles which in turn is an iteration on the bl.ock Sankey Particles III by @Elijah_Meeks

the #nodejs script createGraph.js reshapes data.json from the Sankey of rCharts Example Gallery bl.ock to the graph.json graph object format expected by our Sankey Particles vis

to run createGraph.js yourself, cd into the directory that contains this bl.ock and run these commands from the terminal:

npm i
node createGraph.js

this will install the dependencies from package.json and then run createGraph.js


Original README.md:

Using particles to indicate flow between reservoirs in a sankey diagram. This time with particles moving at varying speeds and maintaining the color of the source node. You can drag the reservoirs (the rectangles) to adjust the path of the flows.

Other examples of sankeys with particles:

index.html

createGraph.js

d3.sankey.js

data.json

graph.json

package.json