antvis / antvis/G2

[Bug]: Large number of series break tooltip names

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

Description

### Describe the bug / 问题描述

When there is a large number of series the tooltip is showing wrong name of series.

In the following image Arsenal and Real Madrid has the same color and this break the England tooltip showing Real Madrid instead of Arsnenal.

![Image](https://github.com/user-attachments/assets/09b71f1d-76af-451f-b95c-41ec7c05a26a)

### Reproduction link / 复现链接

https://stackblitz.com/edit/vitejs-vite-x32nzinc?file=src%2FApp.tsx

### Steps to Reproduce the Bug or Issue / 重现步骤

Just go over the chart with the mouse to see the broken tooltip.

### Version / 版本

🆕 5.x

### OS / 操作系统

- [x] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

Open the contributing guide

Research direction

Start with src/App.tsx in the linked StackBlitz reproduction and inspect the chart tooltip with the large set of series. Reproduce the incorrect name mapping, then verify that hovering each series displays its own name, including Arsenal, Real Madrid, and England.

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.