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

Use LinkLabel from ipysankeywidget #74

Closed
AlexandreBorowczyk opened this issue Apr 1, 2019 · 2 comments
Closed

Use LinkLabel from ipysankeywidget #74

AlexandreBorowczyk opened this issue Apr 1, 2019 · 2 comments

Comments

@AlexandreBorowczyk
Copy link

Hi,

I'm generating my graph using the following command:
sdd = SankeyDefinition(nodes, bundles, ordering,flow_partition=flow_partition) weave(sdd, flows, palette='Set2_5').to_widget(**size,align_link_types=True)

However, I would like to have the links labeled as in https://nbviewer.jupyter.org/github/ricklupton/ipysankeywidget/blob/master/examples/More%20examples.ipynb

Is this possible?

@ricklupton
Copy link
Owner

Thanks, good idea -- this isn't an option at the moment but it would make sense to add it as an option to to_widget method I think:

https://github.com/ricklupton/floweaver/blob/master/floweaver/sankey_data.py#L60-L81

Perhaps link_label_format and link_label_min_width keyword arguments that get passed through. Contributions welcome to speed up the process! :)

@ricklupton
Copy link
Owner

Closed by #91

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

No branches or pull requests

2 participants