antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

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

moayuisuda posted onGitHub

Describe the bug / 问题描述

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

https://stackblitz.com/edit/react-chvm779o-1mbpckw7?file=src%2Findex.js

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

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

posted by interstellarmt 18 days ago

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

posted by moayuisuda 17 days ago

I think I might a solution to your issue. Check it out here click

posted by surnamdu72 10 days ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests