G2Plot icon indicating copy to clipboard operation
G2Plot copied to clipboard

🐛 [BUG] 基础柱状图tooltip位置出现错乱

Open scott-avery opened this issue 2 years ago • 1 comments

🐛 Bug description

在示例中,将鼠标移至 z 轴 39 后面的数据,tooltip 都会出现错乱,柱高亮背景也不对。 https://codesandbox.io/s/vigorous-resonance-1opbmw?file=/index.ts

📷 Step to reproduce

显而易见

🏞 Expected result

没有错乱

🚑 Any additional

image
  • G2Plot Version: 2.4.25
  • Platform:

scott-avery avatar Feb 09 '23 08:02 scott-avery

我也遇到这个问题,但看到官方demo用最新版本的库都没问题后,我研究了下,发现其实是不支持x轴的值为number类型。你把x轴指向的字段的值,改为string类型应该就没问题了。是个临时解决方案。

gyt95 avatar Oct 06 '23 14:10 gyt95