ricklupton / ipysankeywidget

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

Node & Link value labels. #30

Open dorealex opened 6 years ago

dorealex commented 6 years ago

Hello, is there any way to show the flow values as well as the totals flowing into each node?

image

I've uploaded my current sankey chart, and added in red the text labels I am looking for.

Thanks

ricklupton commented 6 years ago

Hi @dorealex, sorry for the delay. This is a commonly requested feature that's on the roadmap but not there yet. In the meantime, you have to do the node totals by hand and add the figure to the title text; there's currently no way to label the link values (see https://github.com/ricklupton/d3-sankey-diagram/issues/2)

ricklupton commented 5 years ago

I've added link labels to d3-sankey-diagram v0.7.3, so this is nearly possible -- ipysankeywidget just needs updating to give the option to show the labels.

ricklupton commented 5 years ago

This is possible now for the link values by customizing the linkLabelFormat and linkLabelMinWidth trains -- see the example notebook

The node values still need an option exposing in ipysankeywidget.