antvis / antvis/G2Plot

MultiView: tooltip显示不完整

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

Description

* **G2Plot Version**:
* **Platform**:
* **Mini Showcase(like screenshots)**:
* **CodePen Link**:

当数据点靠近canvas上边界的时候,hover上去tooltip的定位没有自动加上offset导致tooltip渲染出界。在其他的图表中都有做自动加上offset这样的优化,但是multiview还没有优化处理。
截图如下:
![image](https://user-images.githubusercontent.com/31492974/106723797-73b44200-6642-11eb-991b-bf17111cb3bd.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the MultiView tooltip with a data point near the canvas top, then compare its positioning with other chart types that already apply an offset. Trace the MultiView tooltip entry point and verify the fix by confirming that the tooltip remains fully within the canvas boundary.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.