apache / apache/echarts

[Bug] The graph moves automatically.

Open
#17,865 4 comments 0 reactions 0 assignees View on GitHub
bug en topic: graph
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.0

### Link to Minimal Reproduction
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

```markdown
- 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.