antvis / antvis/G2

折线图 更新数据后tooltip展示bug

Open
#6,002 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

创建一个折线图。通过changedata更新数据后,某些点的tooltip不展示

### 重现链接

https://codesandbox.io/p/sandbox/g2-tooltip-demo-lfv3jw

### 重现步骤

1.进入页面
2. hover图表,tooltip展示正常
3. 点击按钮更新数据
4. hover图表,某些点tooltip不展示

### 预期行为

期望hover时每个点tooltip都展示,实际上某些点tooltip展示不出来

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

视频.mov…

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and compare tooltip behavior before and after the chart data is updated with changeData. Trace the line-chart tooltip interaction to determine why some points are skipped, then verify that hovering each point displays a tooltip after the update.

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.