antvis / antvis/G2Plot

🐛 [BUG]饼图配置交互视图出现了一个reset按钮

Open
#3,629 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
TypeScript
Stars
2.7k
Forks
591
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Bug description

> 饼图配置交互视图出现了一个reset按钮
### 📷 Step to reproduce
`interactions: [{ type: 'brush' }, { type:'legend-filter', enable:false }, { type: 'legend-active', enable:false }],`
然后鼠标手势会变成+
![image](https://github.com/antvis/G2Plot/assets/47112336/0cf0c11b-953f-4a69-8a18-a7afb234bf8d)
点击空白任意地方出现reset的白色按钮
![image](https://github.com/antvis/G2Plot/assets/47112336/85d7a31b-3e05-4906-a097-3de8abb36e04)

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

* **G2Plot Version**:
"@antv/g2plot": "2.4.31",
* **Platform**:
macOS 13.4
GoogleChrome
"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a pie chart using the supplied interactions configuration, with G2Plot 2.4.31 in Chrome on macOS. Start by tracing the chart interaction and reset-button behavior; done should match the intended interaction view without the unexpected white reset button.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.