[Bug]: 触发单个元素的高亮时,高亮未生效
- Dominant language
- TypeScript
- Stars
- 12.6k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
官网的柱状图实例,开启高亮交互,然后添加如下触发的逻辑,高亮没有生效,
如果同时高亮多个元素是正常的
```
setTimeout(()=>{
chart.emit('brush:highlight',{data:{selection:[['H'],[0,2000]]}})
},1000)
```
### Reproduction link / 复现链接
_No response_
### Steps to Reproduce the Bug or Issue / 重现步骤
官网的柱状图增加一个触发事件就可复现
### Version / 版本
🆕 5.x
### OS / 操作系统
- [ ] macOS
- [x] Windows
- [ ] Linux
- [ ] Others / 其他
### Browser / 浏览器
- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
Contributor guide
Research direction
Start with the official bar-chart example described in the issue and trace the chart.emit('brush:highlight', {data:{selection:[['H'],[0,2000]]}}) entry point. Compare highlighting one element with highlighting multiple elements, then verify that the single-element case highlights as expected.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100