antvis/G2

scale 中的 nice:true 对于坐标轴的 tick 计算感觉效果没有 3.0 的时候好 #3260

SunGuoQiang123 posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

https://g2.antv.vision/en/examples/line/basic#base

Steps to reproduce

将 chart.scale 方法中 value 字段的配置项中 去掉 min:0 的配置,只保留 nice:true 效果和不设置 nice:true 是一样的 nice 设为 true 后,并没有起到 3.0 中 对 max 和 min 的调整效果 查看文档后 设置 tickMethod: 'r-pretty' 后 效果和 3.0 是一致的 文档说 r-pretty tickCount 精度太差 具体是什么问题 有什么样的影响呢 3.0 是使用的 r-pretty ?

Environment Info
g2 4.1.9
System mac 10.15.7
Browser 88.0.4324.96

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


Fund this Issue

$0.00
Funded

Pull requests