antvis/G2

The issue has been closed
brushXHighlight属性样式设置会导致一部分不符合预期高亮 #6190
Runtus posted onGitHub
问题描述
- 为brushXHighlight设置高亮样式时,会出现一部分不符合预期的错位高亮
<img width="535" alt="image" src="https://github.com/antvis/G2/assets/48038769/7fbc269c-37f5-4803-97bf-d2867f507f1c">
代码如下:
context
.line()
.encode('x', 'time')
.encode('y', 'value')
.encode("color", "type")
.animate(false)
.axis(false)
.interaction('tooltip', false)
.interaction('brushXHighlight', {
series: true,
maskOpacity: 0.3,
maskFill: '#777',
});
- 官网的多视图例子中也有类似的bug。
<img width="482" alt="image" src="https://github.com/antvis/G2/assets/48038769/a14926b2-53f9-406b-a501-567203227ffc">
重现链接
No response
重现步骤
No response
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
No response
补充说明(可选)
No response