-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Sankey: group nodes #3556
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
Sankey: group nodes #3556
Conversation
Here's a Codepen showcasing the new mock introduced in this PR: https://codepen.io/antoinerg/pen/MLxjmB |
1.45.0 is getting delayed (due to my buggy PRs), so let's try get this in 1.45.0! |
@antoinerg let me know if you need help to finish up this PR today. |
@antoinerg can you fix: ? |
Awesome work @antoinerg Looks like this PR only needs two more interaction tests: and it will be ready to 🚀 |
@etpinard I added tests in ffbafa7 as requested. In the process of writing them, I encountered a show-stopping bug for certain combinations of nodes: for example in mock Plotly.restyle(gd,{'node.groups':[[[1,3]]]}) CPU usage goes to 100% and the operation never ends. The issue seems limited to I would still like to investigate why exactly |
The problem mentionned in #3556 (comment) is now fixed in 7094887. The problem was that the check for circularity was done prior to grouping nodes. Grouping certain combination of nodes (see 1.) can create a circularity and
|
Nicely done 💃 |
Closes part of #3321 by implementing grouping of nodes via a new
node.groups
attribute. For now, it can be called viaPlotly.restyle
.It is based off a recent
master
and it supersedes PR #3426Checklist: