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】interaction.tooltip.mount = "body" 的时候,有多张图表渲染时,tooltip 错位 #5270

Closed
TopGrd opened this issue Jul 4, 2023 · 2 comments · Fixed by #5283
Labels

Comments

@TopGrd
Copy link

TopGrd commented Jul 4, 2023

  • G2 Version: 5.0.14
  • Platform: Mac OS
  • Mini Showcase(like screenshots):
image

当渲染2个图表时,tooltip会错位。如图,我鼠标在下面的图表,tooltip在上方的图表显示。

@TopGrd TopGrd changed the title 多张图表渲染时,tooltip错位 【v5】多张图表渲染时,tooltip错位 Jul 4, 2023
@pearmini
Copy link
Member

pearmini commented Jul 6, 2023

改成如下就没有问题:

image

之前是:

image

导致如下:

image

@TopGrd
Copy link
Author

TopGrd commented Jul 6, 2023

改成如下就没有问题:

image

之前是:

image

导致如下:

image

如果都挂载到body上,还是有错位的问题。demo 代码我改了下,你可以看看
image

@pearmini pearmini changed the title 【v5】多张图表渲染时,tooltip错位 【v5】interaction.tooltip.mount = "body" 的时候,有多张图表渲染时,tooltip 错位 Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants