ant-design-charts icon indicating copy to clipboard operation
ant-design-charts copied to clipboard

🧐[问题] Is there a way to obtain the coordinate accuracy of the y-axis of a bar chart?

Open Cherry860 opened this issue 2 years ago • 2 comments

🧐 问题描述 [详细地描述问题,让大家都能理解]

Is there a way to obtain the coordinate accuracy of the y-axis of a bar chart?

💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]

For example, in this figure, I want to obtain a value ranging from 50000 to 25000. In fact, the value of the Y axis is dynamically generated. How can I determine the distance of each coordinate? ![image](![image](image

🚑 其他信息 [如截图等其他信息可以贴在这里]

Cherry860 avatar Jul 08 '22 09:07 Cherry860

https://charts.ant.design/zh/docs/manual/faq#4%E6%80%8E%E4%B9%88%E8%AE%BE%E7%BD%AE%E6%A8%AA%E8%BD%B4%E4%BB%8E-0-%E5%BC%80%E5%A7%8B

lxfu1 avatar Jul 08 '22 09:07 lxfu1

@lxfu1 Thank you, but my question is not how the coordinates start from 0, but how to get the difference between the two coordinates.

Cherry860 avatar Jul 11 '22 01:07 Cherry860

yAxis: {
 tickInterval: 5000
}

lxfu1 avatar Feb 14 '23 11:02 lxfu1