-
Notifications
You must be signed in to change notification settings - Fork 0
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
Separate x and y in sankey #1
base: master
Are you sure you want to change the base?
Conversation
@etpinard Please look at this plotly PR |
Hi @Kuluum - thanks for the PR. Can you share an example (ideally via codepen) of the old vs the new behavior? |
@etpinard codepen On current version, you need to add y list to do that (for example, |
I'll cc @antoinerg who worked on this problem before. What do you think @antoinerg ? |
By the way @Kuluum - have you ran the image tests off your branch? If so, did it lead to any failures? |
@etpinard No, I miss this moment, just didn't see this link before. I will do it asap. Maybe it's a good idea to add information about running tests in Pull request guide? |
@etpinard sankey tests are ok
I also tried to run all test, but it crashes on different test cases once at 493 another one at 431 |
@antoinerg ping |
@etpinard @Kuluum I just laid my eyes on this one for the first time. Sorry for the delay. This is an interesting change. It seems like it's working alright for the simple case you provided in the Codepen but I would need to see how it behaves when there are circular links (or way more nodes). I will take a better look at it tomorrow. |
@antoinerg kind reminder =) |
@Kuluum we appreciate your enthusiasm, but unfortunately plotly.js devs are a little busy at the moment with end-of-year requirements to finish. Reviewing community PRs is often not a high-priority for us unfortunately. We'll attempt to take a in-depth look at your work before our next minor release coming at the start of the new year. Thank you. |
@etpinard Maybe I should make this PR to main repository so you can see it there instead of visiting my repo? |
@antoinerg @etpinard Is anybody here? :) |
Sorry @Kuluum for being inactive here. I was sucked into working on other codebases. As I said, I would need to see examples of how it behaves. I suspect that setting only Could you add a new mock/baseline showcasing the feature with and without circular links? Thank you @Kuluum ! |
@antoinerg You can switch <script> tag in html box between current plotly's cdn and my built version. In the current plotly version if you comment just one of P.S. If you set |
@antoinerg I still here) |
The idea is to separate x and y parameters of sankey's node to make it independent. Now if the user wants to force set only x (or y) position he or she must provide another parameter too.
I faced this problem when I made a graph with about 300 nodes and I wanted to make several columns. I wanted to force place each node in some column, so I need to set x positions, but I don't want to bother about y position, because plotly have some good logic to place nodes around, and to save plotly's y positions I should repeat this logic.