antvis/G2

tooltip 自定义 DOM #4485

pearmini posted onGitHub

tooltip.customContent

下面的例子中,customContent 回调参数除了分面中的数据,还应该包含标注 mark 的数据

Image

也可以按照其他思路:customContent 中返回了 x scale 对应的数据,然后外部自定义自己去索引取到标注相关的数据


posted by pearmini over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests