ricklupton / ipysankeywidget

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

Setting the colour of specific processes #44

Open jaygut opened 5 years ago

jaygut commented 5 years ago

I can’t seem to find a way to color differentially the nodes and make them wider than the default setting. I tried to set this up using a dictionary as follows: {'id': 'Anc', 'title': 'Anc', 'style': 'process', 'color': 'blue', 'stroke-width': '20px’}. But unfortunately nothing seems to work. Is there a way to go around this without altering the CSS style?

ricklupton commented 4 years ago

Hey, sorry for the slow reply -- there is some basic alternate styling intended to show "process" nodes differently from nodes that are just grouping flows together (see here) -- so if you are setting 'style': 'process' it should have made the line thicker and grey rather than thin and black.

But beyond that, there is no built-in way to customise this further without using CSS at the moment.

Style customisation options would be a reasonable addition if anyone wants to have a go at adding it!