antvis/G2



The issue has been closed
X轴type是cat,并且值是数值时,绘图计算错误 #3837
xiaoke-1 posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
复现链接:https://codesandbox.io/s/busy-mendel-91nj7f X轴scale如果是分类类型,值又是数值类型,画出来的柱子往左偏移了一个,tooltip也不准.
这个是util/tooltip.ts的相关代码,这里242行的xValue是索引,originData[xField]是遍历X轴的值,如果X轴的值是数字,就会存在originData[xField]等于xValue,这里为什么会这么比较
What does the proposed API look like?
为什么这么设定?如果X轴是分类数据,并且值是数值类型应该怎么实现
另外为啥提交新issues的时候,错误报告里的版本是暂无数据
<!-- generated by antv-issue-helper. DO NOT REMOVE -->