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

[Bug]: 密度热力图tooltip显示的数据不随鼠标移动更新 #6615

Open
2 of 10 tasks
hfdy0935 opened this issue Feb 20, 2025 · 1 comment
Open
2 of 10 tasks
Labels
bug 🐛 Something isn't working

Comments

@hfdy0935
Copy link

Describe the bug / 问题描述

密度热力图开启tooltip时,数据不随鼠标移动更新;
比如下面这张图,无论鼠标怎么移动,tooltip始终显示第一个点的数据

Image

Reproduction link / 复现链接

https://stackblitz.com/edit/react-uwwgnvtc

Steps to Reproduce the Bug or Issue / 重现步骤

重现方式:官网的例子(https://g2.antv.antgroup.com/examples/general/heatmap/#heatmap )去掉heatmap的.tooltip(false)让提示显示,或者用上面StackBlitz的链接 );

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@hfdy0935 hfdy0935 added the waiting for maintainer Triage or intervention needed from a maintainer label Feb 20, 2025
@antvis antvis deleted a comment from petercat-assistant bot Feb 20, 2025
@interstellarmt interstellarmt added bug 🐛 Something isn't working and removed waiting for maintainer Triage or intervention needed from a maintainer labels Feb 27, 2025
@interstellarmt
Copy link
Contributor

interstellarmt commented Feb 27, 2025

热力图的绘制只返回了一个索引,后面数据绑定的时候导致所有数据都是同一份,需要在tooltip item拾取的时候做特殊处理。

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants