Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lxliang912 opened this issue Dec 29, 2022 · 3 comments
Closed

Comments

@lxliang912
Copy link

image

image

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

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

@pearmini
Copy link
Member

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

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

@lxliang912
Copy link
Author

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

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

新版本的设计方式吗

@pearmini
Copy link
Member

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

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

新版本的设计方式吗

是的。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants