如何实现类似g2plot,柱状图hover元素区域外的同时,也高亮背景色?
- Dominant language
- TypeScript
- Stars
- 12.6k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
在g2plot中,柱状图hover的默认行为是不管hover到元素内还是元素外,该列数据的背景色都会被显示出来;
在g2中,柱状图只在hover中元素时显示该列背景色,在元素之外则不会显示;
若要实现该效果,该如何进行配置呢?
### 重现链接
_No response_
### 重现步骤
_No response_
### 预期行为
_No response_
### 平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
### 屏幕截图或视频(可选)


### 补充说明(可选)
_No response_
Contributor guide
Research direction
No source file, test, or reproduction link is identified. Start by comparing G2's bar-chart hover interaction with the stated G2Plot behavior and trace the existing interaction configuration; done means determining whether the background can be highlighted outside the bar and documenting a verified configuration or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100