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

如何实现类似g2plot,柱状图hover元素区域外的同时,也高亮背景色? #6389

Open
dskin opened this issue Jul 31, 2024 · 3 comments

Comments

@dskin
Copy link

dskin commented Jul 31, 2024

问题描述

在g2plot中,柱状图hover的默认行为是不管hover到元素内还是元素外,该列数据的背景色都会被显示出来;
在g2中,柱状图只在hover中元素时显示该列背景色,在元素之外则不会显示;
若要实现该效果,该如何进行配置呢?

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

g2plot
g2v5

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Aug 28, 2024

新版本中暂时不支持。

@Runtus
Copy link
Contributor

Runtus commented Aug 31, 2024

我来实现下

@Runtus
Copy link
Contributor

Runtus commented Sep 1, 2024

@hustcc 大佬,想问下,这快逻辑的代码写在哪里比较合适呢?我自己感觉是放到interaction下比较合适,但是不知道放到tooltip中合不合适

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

No branches or pull requests

3 participants