block by timelyportfolio 79350d7475a5709b051e

color your d3 sankey using rCharts

Full Screen

How To Color Your d3.js Sankey Diagram

in this case with rCharts but relevant even without

In response to this Stack Overflow question Adding Color to Sankey Diagram in rCharts, I put this quick example together to demonstrate one way of handling.

demo

index.html

code.R