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

只有一个点时 x轴设置 min max 后 tooltip 不显示 #3520

Closed
Elias-cug opened this issue Jul 16, 2021 · 1 comment
Closed

只有一个点时 x轴设置 min max 后 tooltip 不显示 #3520

Elias-cug opened this issue Jul 16, 2021 · 1 comment

Comments

@Elias-cug
Copy link

https://codesandbox.io/s/gq2ll

@hustcc
Copy link
Member

hustcc commented Sep 30, 2021

大概知道问题了,原因是一个点的时候,折线没有练成线,所以没有办法触发鼠标的事件,所以 tooltip 显示不出来。可以加一个辅助元素。

chart.point().position('year*value');

image

@hustcc hustcc closed this as completed Sep 30, 2021
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