-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Histogram range 出现计算精度误差 #9
Comments
不好意思,一直有其他的事,回复的不及时,我把 echarts 的那个issue 关了,在这个 issue 跟进 |
没关系,有人处理这个issue就好了 |
请问你这个有可视化的例子么,我可以访问么,想看下实际的效果,方便我全面的改一下 |
嗯嗯,好,谢谢 |
您好,精度问题已经解决了,会随下一版本一起发布。也欢迎您给我们提 PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Histogram方法在对float数值进行计算过程中出现精度不一致的问题, 例如range的宽度是0.02, 计算出来的range会出现类似下面的情况 0.5,0.52, 0.54000000000001, 0.56, 0.58000000000001, 0.6
对于在x轴上显示带来问题。
能否根据Range计算过程中step的精度来决定histogram range数值的精度,比如做如下修改:
range.js
The text was updated successfully, but these errors were encountered: