echarts [Bug] The graph moves automatically.

w8ntj3qf  于 9个月前  发布在  Echarts
关注(0)|答案(4)|浏览(113)

Version

5.4.0

https://codepen.io/belousowork/pen/gOKwGKE

Steps to Reproduce

  1. Create a series-graph chart (next.js + echarts-for-react).
  2. Add a click event handler that changes the content of data (for example, hiding a node).
  3. 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

  1. - OS: Ubuntu 22.04.1
  2. - Browser: Google Chrome Version 107.0.5304.68 (64-bit)
  3. - Framework: next.js + echarts-for-react + echarts

Any additional comments?

No response

frebpwbc

frebpwbc1#

@belousovjr Please provide a demo for the issue either with Official Editor , CodePen , CodeSandbox or JSFiddle .

oo7oh9g9

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

3htmauhk

3htmauhk3#

@belousovjr I didn't see anything move randomly or anything strange. Do you mind making a video of screenshot?

qybjjes1

qybjjes14#

@Ovilia
video_2022-11-07_14-31-18.mp4

相关问题