antvis/G2

How does it possible to get value of point by click? Not data of whole chart. #3464

mostopalove posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

https://codepen.io/mostopalove/pen/XWMEwLV

Steps to reproduce

1) Click on some point of chart Expected result: You received data of point Actual result: You received data of whole chart

Environment Info
g2 4.1.17
System -
Browser -

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


对于线图,每一个 element 对应的是一条线,如果确实要选中点,可以额外加一个 point geometry,然后监听事件 point:click。

posted by hustcc almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests