ricklupton / ipysankeywidget

IPython / Jupyter Sankey diagram widget
MIT License
175 stars 24 forks source link

Changing color scheme #7

Closed timsainb closed 7 years ago

timsainb commented 7 years ago

Is there anyway to change the color scheme? I can see you're using d3.scale.category20() in the javascript

Can I replace this palette with, say, an seaborn palette? Thanks!

ricklupton commented 7 years ago

You can set the colour from Python by setting the color attribute of the links (code).

I've added an example of this to the More examples notebook.

Hope that helps, let us know if not.