ricklupton / ipysankeywidget

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

Node customization #10

Open verhulststefanie opened 7 years ago

verhulststefanie commented 7 years ago

For my application purpose it is required that the node values are displayed (tilted) inside the nodes. Ideally, I would like to be able to customize the diagram more or less as in the tool below, but with python. http://sankey.csaladen.es/ Screenshot from tool; image

I don't see the possibility to do this as of yet, could this be possible in the future?

ricklupton commented 7 years ago

Hi,

Sorry for taking so long to reply. This might be possible in future, but it would be done as part of d3-sankey-diagram which ipysankeywidget wraps. I'll move this issue to there.

philiphdf commented 6 years ago

Hello, Are there any updates on this work stream? If so, where can I find an example of the implementation? Thanks!

ricklupton commented 6 years ago

Hi,

I've just added this to d3-sankey-diagram (example) but it hasn't yet been exposed in ipysankeywidget.

Contributions are welcome if you (or anyone else) would like to have a go at this! It would need a node_width trait to set the node width, and perhaps a value_format option too, with the widget Javascript code updated following the example above.

PaulWestenthanner commented 6 years ago

Hi, do I see this correct, that with this update it's possible to show percent values in the flow-charts? This would be a great feature as well.

Cheers, Paul