G2 icon indicating copy to clipboard operation
G2 copied to clipboard

[Bug]: brush:end 事件在柱状图下返回了错误的 selection

Open moayuisuda opened this issue 9 months ago • 3 comments

Describe the bug / 问题描述

柱状图在 brush:end 事件中,会返回 x 区域内所有元素,而不是实际选择的元素 Image Image

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 / 其他

moayuisuda avatar Apr 08 '25 06:04 moayuisuda

这里拿到selection后续的业务逻辑是什么

interstellarmt avatar Apr 08 '25 09:04 interstellarmt

答疑遇到的,他们要拿到这个选中值,渲染到一个头部的 header 里,强调展示当前选中的项

moayuisuda avatar Apr 09 '25 04:04 moayuisuda