antvis / antvis/G2Plot

🐛 [BUG] Bullet plot does not show all data when rendering a shared tooltip

Open
#2,674 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]

The `shared` tooltip of a `Bullet` plot does not show all data points when hovering over the bar.

### 💻 Link to minimal reproduction

[Codesandbox repo](https://codesandbox.io/s/g2plot-bullet-axis-bug-forked-lpdos?file=/src/index.js)

### 📷 Step to reproduce

Open the codesandbox repo and hover with your mouse over the bar (notice the `shared` tooltip option is enabled). You will see that the tooltip shows only the `measures` value, and not the `target` value. However, if you hover the mouse over the target, it correctly shows both.

### 🏞 Expected result

All values should be shown regardless of where a user hovers their mouse when the tooltip has `shared` enabled.

### 🚑 Any additional [like screenshots]

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

Contributor guide

Open the contributing guide

Research direction

Start with the linked Codesandbox reproduction, especially src/index.js, and inspect the Bullet plot configuration where the shared tooltip is enabled. Reproduce the hover behavior over the bar and target; done means the shared tooltip shows both measures and target values regardless of the hover location.

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.