-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Update Sankey algorithm to match latest d3-sankey #3548
Comments
I'd like to work on this. Are there any good examples where the improvements after the update can be observed? |
Hi! I am almost done with the implementation, just want to double check if there is still interest in it. |
@Yura52 Amazing! We are definitely still interested. Would love to see a PR. |
Sorry for the delay. The implementation is finished. However, I cannot find data where improvements can be observed. Do you have any examples? The screenshot is based on this example. 1.13.5. on the left, my implementation on the right. The first row shows nodes, the second row shows edges. The "problem" is that the final sankey plot is absolutely the same in both cases and looks like in the gallery example. So it is either my mistake or "bad" data. The only thing that my implementation changes is how the graph is filled (lines 48-52 here), maybe this is not enough. |
@philippjfr I can create a PR, but I would prefer to make sure that the results I see are expected. Any additional infomation will be helpful. |
Sorry for not getting back to you before. I'd say open the PR and then I can play around with it and give feedback. |
Hello there, just an occasional user here. I was curious about the progress and saw the images in the PR. As another user mentioned here #3501 (comment) the biggest issue with holoviews sankey currently seems to be how nodes are aligned towards the center, creating unnecessary overlap of edges and nodes. Regards, and thanks for your work! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Michael Bostock has made some major improvements to the overlap avoidance algorithms in d3-sankey over the last week. Since the code in holoviews is a fairly straightforward Python port of that code it should be reasonably straightforward to update our code to match. Here's a link to the diff for all the updates.
The text was updated successfully, but these errors were encountered: