antvis/G2

[v5] tooltip和point同时配置会导致tooltip显示的内容出现错误 #4538

lxliang912 posted onGitHub

image

image

官网例子可以复现:https://g2.antv.antgroup.com/examples/general/line/#line-basic

似乎把point的字段值添加到tooltip里面显示了。如果有相似的issues可以把这个关闭


目前需要隐藏 point 的 tooltip,方式如下:

chart.point().encode('tooltip', null).encode('title', null);
posted by pearmini over 2 years ago

目前需要隐藏 point 的 tooltip,方式如下:

chart.point().encode('tooltip', null).encode('title', null);

新版本的设计方式吗

posted by lxliang912 over 2 years ago

目前需要隐藏 point 的 tooltip,方式如下:

chart.point().encode('tooltip', null).encode('title', null);

新版本的设计方式吗

是的。

image

posted by pearmini over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests