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
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:
Fixed speed particles transitioning in color from source node color to target node color.
Particles of differing sizes and differing speeds moving in "bursts" between nodes.
forked from micahstubbs's block: rCharts Examples Sankey Particles
https://d3js.org/d3.v3.min.js
https://npmcdn.com/babel-core@5.8.34/browser.min.js