Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node & Link value labels. #30

Open
dorealex opened this issue May 31, 2018 · 3 comments
Open

Node & Link value labels. #30

dorealex opened this issue May 31, 2018 · 3 comments

Comments

@dorealex
Copy link

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
Copy link
Owner

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 ricklupton/d3-sankey-diagram#2)

@ricklupton
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants