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 版本如何实现十字辅助线 #6092

Open
wangxin305 opened this issue Feb 26, 2024 · 8 comments · May be fixed by #6229
Open

V5 版本如何实现十字辅助线 #6092

wangxin305 opened this issue Feb 26, 2024 · 8 comments · May be fixed by #6229
Assignees

Comments

@wangxin305
Copy link

wangxin305 commented Feb 26, 2024

问题描述

image image
@pearmini
Copy link
Member

目前这个功能还没有支持,感兴趣来贡献一下吗?算是 AntV OSCP 的一个中级任务(新的一期)

@Runtus
Copy link
Contributor

Runtus commented May 8, 2024

目前这个功能还没有支持,感兴趣来贡献一下吗?算是 AntV OSCP 的一个中级任务(新的一期)

大佬这个功能现在还有需求吗

@pearmini
Copy link
Member

pearmini commented May 8, 2024 via email

@Runtus
Copy link
Contributor

Runtus commented May 8, 2024

好的,还有个问题是,这个需求的配置也是参考问题描述中的截图配置中的TooltipCrosshairs配置项吗?

@pearmini
Copy link
Member

pearmini commented May 8, 2024 via email

@Runtus
Copy link
Contributor

Runtus commented May 9, 2024

tooltip 里面已经有相关的配置了,你可以参考一下。发自我的 iPhone在 2024年5月8日,13:35,Runtus @.> 写道: 好的,还有个问题是,这个需求的配置也是参考问题描述中的截图配置中的crosshairs配置项吗? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

大佬,我去官网查阅了下,发现现在Tooltip相关文档的配置(TooltipCfg)和源码中的类型设置不一样,这一块儿是还没有实现吗?
image
目前crosshairs的相关配置是不是都是在interaction的tooltip中配置呀?我看G2Mark下的tooltip是todo的状态,貌似是还没实现😂
image

@pearmini
Copy link
Member

pearmini commented May 9, 2024

这个应该是 4.0 的 tooltip 配置,你可以看看 5.0 的配置, 其实就是可以按照下面三种形式配置 tooltip:

chart.interaction("tooltip", {
  crosshairs,
  crosshairsX,
  crosshairsY
});

然后你可以根据 4.0 的配置,按照这个思路去扩展一下 API。

@Runtus
Copy link
Contributor

Runtus commented May 9, 2024

这个应该是 4.0 的 tooltip 配置,你可以看看 5.0 的配置, 其实就是可以按照下面三种形式配置 tooltip:

chart.interaction("tooltip", {
  crosshairs,
  crosshairsX,
  crosshairsY
});

然后你可以根据 4.0 的配置,按照这个思路去扩展一下 API。

好的,感谢大佬,那这个需求我来做下

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

Successfully merging a pull request may close this issue.

3 participants