antvis / antvis/G2Plot

🐛 [BUG]散点图的散点如果在边界, 则很难触发tooltip

Open
#3,166 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]

> Please provide a link by forking these links [G2Plot](https://codesandbox.io/s/g2plot-issue-template-gzfdq?file=/index.ts) or GitHub repo, a minimal reproduction.

* _Required_ **Link to minimal reproduction**:
https://codesandbox.io/s/1jr3ep?file=/index.ts
### 📷 Step to reproduce
当有一个散点在图表边界时, 超出边界部分的元素无法触发tooltip

![图片](https://user-images.githubusercontent.com/30228406/160527755-9dd9d1e6-b17e-455c-b1c2-e8f670665943.png)

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

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

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox minimal reproduction at /index.ts and reproduce the scatter plot tooltip behavior when a point lies on the chart boundary. Trace the G2Plot scatter and tooltip entry points from that example; done means the portion of a boundary point extending beyond the plot area can still trigger its tooltip.

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.