ipysankeywidget icon indicating copy to clipboard operation
ipysankeywidget copied to clipboard

Node & Link value labels.

Open dorealex opened this issue 7 years ago • 3 comments

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

dorealex avatar May 31 '18 13:05 dorealex

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 avatar Jul 16 '18 12:07 ricklupton

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 avatar Jan 08 '19 11:01 ricklupton

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.

ricklupton avatar Jan 08 '19 23:01 ricklupton