antvis/G2

[v5] 鼠标 hover 到标签上时,无法显示 tooltip #4757

visiky posted onGitHub

期望结果

这个问题在 4.0 中也存在,期望鼠标 hover 在标签上时,也可以如右图展示 tooltip

现状 期望
<img width="663" alt="image" src="https://user-images.githubusercontent.com/15646325/224605371-7d73baec-2dbc-43e2-b627-c8acf600a5ff.png"> <img width="646" alt="image" src="https://user-images.githubusercontent.com/15646325/224605402-49633c20-9701-4156-92b6-2d870a3d4d37.png">

复现地址


.label({
  text: 'value',
  position: 'inside',
  formatter: (v) => (v ? `${v}%` : ''),
  transform: [{ type: 'overlapDodgeY' }],
  style: {
    fill: '#000',
    fontSize: 10,
    pointerEvents: 'none',  // 👈🏻,不响应事件即可
  },
});
posted by hustcc almost 2 years ago

Fund this Issue

$0.00
Funded

Pull requests