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
After dragging some nodes and selecting a category from legend, all nodes are reset to their original positions, i.e. the manual repositioning is lost.
I wouldn't call it a bug, but it isn't right behavior either. Why bother to rearrange a graph when a simple legend click will reset it?
Expected Behavior
Legend is about node visibility only and should not affect node positions.
Environment
- OS: win 10
- Browser: Chrome
- Framework: none
Any additional comments?
The documentation for draggable says: "Note that this option is only available when using force-directed layout before v5.4.1."
But draggable works for layout:'none' too and makes sense only in this context.
Related to #19493.
The text was updated successfully, but these errors were encountered:
Additionally, nodes reset to their original positions when I try to use setOption method to update some linkStyle on onmouseover event. I think it is a similar situation: whether mouseover on the chart (filtered to node mouseover) or click on the legend.
I do not know how can I get the draggable positions to provide them while calling setOption as a means to update the nodes with the dragged positions.
Version
5.5.1
Link to Minimal Reproduction
Example
Steps to Reproduce
drag some nodes and select a category from legend
Current Behavior
After dragging some nodes and selecting a category from legend, all nodes are reset to their original positions, i.e. the manual repositioning is lost.
I wouldn't call it a bug, but it isn't right behavior either. Why bother to rearrange a graph when a simple legend click will reset it?
Expected Behavior
Legend is about node visibility only and should not affect node positions.
Environment
Any additional comments?
The documentation for draggable says:
"Note that this option is only available when using force-directed layout before v5.4.1."
But draggable works for layout:'none' too and makes sense only in this context.
Related to #19493.
The text was updated successfully, but these errors were encountered: