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

[Bug] Edge Arrows Do Not scale on zoom in/out #19311

Open
ahas36 opened this issue Nov 20, 2023 · 1 comment
Open

[Bug] Edge Arrows Do Not scale on zoom in/out #19311

ahas36 opened this issue Nov 20, 2023 · 1 comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@ahas36
Copy link

ahas36 commented Nov 20, 2023

Version

5.4.1

Link to Minimal Reproduction

https://codesandbox.io/s/echart-graph-arrow-head-scale-issue-k9pkcs?file=/src/index.js

Steps to Reproduce

  1. Create a graph with nodes and directed edges.
  2. Implement zoom functionality on the graph.
  3. Observe the relative sizes of nodes and edge arrows as the zoom level changes.

Current Behavior

When zooming in and out on a graph, the nodes scale properly, but the arrows on the edges do not. This results in a visual imbalance where the arrows appear disproportionately large or small compared to the nodes at different zoom levels, leading to a degradation in the readability and aesthetic appeal of the graph.

Expected Behavior

The expectation is for the arrows on the edges to scale in proportion with the nodes, maintaining a consistent and relative size at all zoom levels. This would ensure a balanced and visually coherent graph representation, irrespective of the zoom.

Environment

- OS:Widnows 10
- Browser:Chrome Version 119.0.6045.159 (Official Build) (64-bit)
- Framework:React

Any additional comments?

I encountered this issue while working on a data visualization project that requires detailed graph representations. The lack of proportional scaling for edge arrows in zoomed views poses a significant challenge in maintaining the quality and effectiveness of the visualizations.

@ahas36 ahas36 added the bug label Nov 20, 2023
@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 20, 2023
unreliable-tn pushed a commit to unreliable-tn/echarts that referenced this issue Dec 12, 2023
@unreliable-tn
Copy link

Screen.Recording.2023-12-12.at.01.23.30.mov

fixed in #19384

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 pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants