antvis/G2

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

wangxin305 posted onGitHub


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

posted by pearmini about 1 year ago

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

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

posted by Runtus 12 months ago

嗯嗯,这个还有!发自我的 iPhone在 2024年5月8日,11:00,Runtus @.***> 写道:

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

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

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

posted by pearmini 12 months ago

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

posted by Runtus 12 months ago

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: @.***>

posted by pearmini 12 months ago

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)和源码中的类型设置不一样,这一块儿是还没有实现吗? <img width="651" alt="image" src="https://github.com/antvis/G2/assets/48038769/720f84ab-186f-4748-9563-38653da12dce"> 目前crosshairs的相关配置是不是都是在interaction的tooltip中配置呀?我看G2Mark下的tooltip是todo的状态,貌似是还没实现😂 <img width="283" alt="image" src="https://github.com/antvis/G2/assets/48038769/52041bf5-997c-49ca-910f-9e63c2c6c118">

posted by Runtus 12 months ago

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

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

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

posted by pearmini 12 months ago

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

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

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

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

posted by Runtus 12 months ago

Fund this Issue

$0.00
Funded

Pull requests