Version
5.4.0
Link to Minimal Reproduction
https://codepen.io/belousowork/pen/gOKwGKE
Steps to Reproduce
- Create a series-graph chart (next.js + echarts-for-react).
- Add a click event handler that changes the content of data (for example, hiding a node).
- Zoom the graph as much as possible and click on a node.
Current Behavior
The graph automatically shifts in an inexplicable direction.
Expected Behavior
The scale and position of the graph remain unchanged after updating the data.
Environment
- OS: Ubuntu 22.04.1
- Browser: Google Chrome Version 107.0.5304.68 (64-bit)
- Framework: next.js + echarts-for-react + echarts
Any additional comments?
No response
4条答案
按热度按时间frebpwbc1#
@belousovjr Please provide a demo for the issue either with Official Editor , CodePen , CodeSandbox or JSFiddle .
oo7oh9g92#
@Ovilia
Here is the reproduction.
It is enough to zoom the chart to the maximum and click on any node to change the color.
As a result, the contents of the chart move randomly.
https://codepen.io/belousowork/pen/gOKwGKE
3htmauhk3#
@belousovjr I didn't see anything move randomly or anything strange. Do you mind making a video of screenshot?
qybjjes14#
@Ovilia
video_2022-11-07_14-31-18.mp4