apache / apache/echarts

[Bug] Panning is broken in the multi-dataset public treemap example "How $3.7 Trillion is Spent"

Open
#20,361 8 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=treemap-obama&lang=js&version=5.5.1

### Steps to Reproduce

1. Open public example: https://echarts.apache.org/examples/en/editor.html?c=treemap-obama&lang=js&version=5.5.1
2. Hold left mouse click, make sure that panning works on the dataset opened by default (2012Budget)
3. Switch to 2011Budget by pressing the button in the Legend. Panning by left-mouse-click-hold still works.
4. Switch back to 2012Budget. Panning no longer works. Position of the chart is fixed.

### Current Behavior

See "Steps to Reproduce"

### Expected Behavior

Panning by mouse click should work regardless how many times you switch between legend datasets/tabs.

### Environment

```markdown
- OS: Ubuntu 22.04
- Browser: Firefox 130.0.1, Chrome 128.0.6613.137
- Framework: https://echarts.apache.org/
```

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