Skip to content
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

graph 'draggable:true' with legend problem #20518

Open
helgasoft opened this issue Nov 14, 2024 · 0 comments
Open

graph 'draggable:true' with legend problem #20518

helgasoft opened this issue Nov 14, 2024 · 0 comments
Labels
bug en This issue is in English topic: graph
Milestone

Comments

@helgasoft
Copy link

helgasoft commented Nov 14, 2024

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

- 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.

@helgasoft helgasoft added the bug label Nov 14, 2024
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Nov 14, 2024
@helgasoft helgasoft changed the title graph _draggable:true_ with legend problem graph 'draggable:true' with legend problem Nov 14, 2024
@Ovilia Ovilia added this to the TBD milestone Nov 18, 2024
@Ovilia Ovilia added topic: graph and removed pending We are not sure about whether this is a bug/new feature. labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English topic: graph
Projects
None yet
Development

No branches or pull requests

2 participants