antvis/G2

基础条形图数据有一条为0时,tooltip没有提示 #3835

suran101 posted onGitHub

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

https://g2.antv.vision/zh/examples/bar/basic#basic

Steps to reproduce

把基础条形图中的一个值改成 0 image

Environment Info
g2 4.1.48
System -
Browser -

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


算是合理的,因为事件的拾取是根据图形来的,数据为 0,所以图形也是看不到的。不过可以改变拾取的方式:

chart.tooltip({
  showMarkers: false,
  shared: true,
});

image

posted by hustcc over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests