G2 icon indicating copy to clipboard operation
G2 copied to clipboard

tooltip 触发条件

Open YY88Xu opened this issue 2 years ago • 5 comments

问题描述

https://echarts.apache.org/examples/zh/editor.html?c=bar-label-rotation image 有没有echarts 类似的功能,就是点击的是空白的地方也会出现 tooltip,现在柱状图需要hover到柱子才能出现 tooltip

重现链接

No response

重现步骤

No response

预期行为

No response

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

YY88Xu avatar Jan 16 '24 12:01 YY88Xu

image https://g2.antv.antgroup.com/zh/examples/general/interval/#bar-basic-grouped

YY88Xu avatar Jan 16 '24 12:01 YY88Xu

嗯嗯,这个目前需要优化,最快这个月底优化。

pearmini avatar Jan 19 '24 02:01 pearmini

嗯嗯,这个目前需要优化,最快这个月底优化。

优化完了吗 ? 怎么开启这个功能呢 ?

Liugq5713 avatar Feb 28 '24 13:02 Liugq5713

坐等优化,目前我是另外设置一个透明的interval,层级为最底层,这样另辟蹊径也大致达到这个效果🤣

CullenNg avatar May 06 '24 06:05 CullenNg

坐等优化,目前我是另外设置一个透明的interval,层级为最底层,这样另辟蹊径也大致达到这个效果🤣

怎么做的呀, 我也设置了透明的 interval , 但是这个柱状图会收到legend点选的影响,用户点了legend之后就出现颜色了。。

Liugq5713 avatar May 23 '24 08:05 Liugq5713

@CullenNg @Liugq5713 @YY88Xu 这个 PR 已经优化了这个功能:https://github.com/antvis/G2/pull/6289

pearmini avatar Jun 17 '24 06:06 pearmini