G2
G2 copied to clipboard
[Bug]: brush:end 事件在柱状图下返回了错误的 selection
Describe the bug / 问题描述
柱状图在 brush:end 事件中,会返回 x 区域内所有元素,而不是实际选择的元素
Reproduction link / 复现链接
https://stackblitz.com/edit/react-chvm779o-1mbpckw7?file=src%2Findex.js
Steps to Reproduce the Bug or Issue / 重现步骤
No response
Version / 版本
🆕 5.x
OS / 操作系统
- [x] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他
Browser / 浏览器
- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
这里拿到selection后续的业务逻辑是什么
答疑遇到的,他们要拿到这个选中值,渲染到一个头部的 header 里,强调展示当前选中的项