antvis / antvis/G2Plot

🐛 [BUG] 双轴图框选后,部分数据线会出现在 X 轴下方,框选重置后仍然有问题

Open
#3,220 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 [Please make everyone to understand it]

![image](https://user-images.githubusercontent.com/14918822/168974391-cbc9c837-1e61-460e-b7a1-3054d618ee32.png)

![image](https://user-images.githubusercontent.com/14918822/168974447-f8bfa31d-3274-4fc8-8522-fded71dfe7ea.png)

* _Required_ **Link to minimal reproduction**: https://codesandbox.io/s/staging-pond-bexluu?file=/index.ts

### 📷 Step to reproduce

1. 打开重现链接: [reproduction](https://codesandbox.io/s/staging-pond-bexluu?file=/index.ts)
2. 进行框选交互即可重现

### 🏞 Expected result

- 所有数据线均出现在 X 轴或 X 轴上方

### 🚑 Any additional [like screenshots]

* **G2Plot Version**: 2.4.16
* **Platform**:

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction at index.ts and reproduce the dual-axis chart's box-selection interaction using G2Plot 2.4.16. Investigate the behavior before and after resetting the selection; done means every data line remains on or above the X axis.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.