You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be cool to be able to force an ordering on the nodes of a sankey diagram. I imagine the order in which nodes appear in the label list of a sankey data object would be a reasonable choice.
@antoinerg I see you have assigned yourself to this issue, thank you for that! Since I have no JS-experience and cannot help out on the coding side is there anything I can do?
In my case, I have about 25 target nodes and plotly puts most of them in the correct order that I would like, but without fail it always has to put 2 of them in some random place, breaking the cleanliness of the plot. Manual ordering would help me fix this.
Also, in my case, the targets are unique to a source, meaning that there should never be a need for connections to overlap (which I suppose is a different issue, as whatever mechanism is used to auto-sort nodes really should be able to prevent overlap when it's not necessary).
Also, although we can drag nodes within a column, this isn't reflected in the state so on save/reload, export etc this info is lost. This position needs to be part of the state! Ordering should also work.
Activity
xstraven commentedon Oct 25, 2018
I would also highly value the ability to order the nodes in a sankey diagram.
xstraven commentedon Oct 28, 2018
@antoinerg I see you have assigned yourself to this issue, thank you for that! Since I have no JS-experience and cannot help out on the coding side is there anything I can do?
skylogic004 commentedon Nov 15, 2018
I agree, this would be very useful.
In my case, I have about 25 target nodes and plotly puts most of them in the correct order that I would like, but without fail it always has to put 2 of them in some random place, breaking the cleanliness of the plot. Manual ordering would help me fix this.
Also, in my case, the targets are unique to a source, meaning that there should never be a need for connections to overlap (which I suppose is a different issue, as whatever mechanism is used to auto-sort nodes really should be able to prevent overlap when it's not necessary).
jwilson8767 commentedon Nov 26, 2018
@antoinerg
Possibly of use: https://stackoverflow.com/questions/33461868/ordering-nodes-in-d3-sankey-diagram
And even more recently: d3/d3-sankey#53
antoinerg commentedon Dec 4, 2018
Also, although we can drag nodes within a column, this isn't reflected in the state so on save/reload, export etc this info is lost. This position needs to be part of the state! Ordering should also work.
Thank you @jwilson8767 for the links!
ndeku commentedon Feb 21, 2019
Agree this would add value to the Sankey diagrams in Plotly. Without consistent node ordering the diagrams are not reliably reproducible.
Mahdis-z commentedon Nov 20, 2019
The new feature
node.(x|y)sets the position of nodes in Sankey. Please follow this issue forsortingfeature.