Skip to content
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

显示精度问题 百条数据以上 曲线图会变成阶梯状 #32

Open
jin290 opened this issue Jul 22, 2019 · 0 comments
Open

显示精度问题 百条数据以上 曲线图会变成阶梯状 #32

jin290 opened this issue Jul 22, 2019 · 0 comments

Comments

@jin290
Copy link

jin290 commented Jul 22, 2019

SuitLines.java 的 calcUnitXY()方法
float scale = new BigDecimal("1").subtract( (new BigDecimal(Float.toString(curValue)) .subtract(new BigDecimal(Float.toString(minAndMaxOfY[0])))) .divide(new BigDecimal(Float.toString(absValueOfY)), 2,BigDecimal.ROUND_DOWN)
在最大数据等于400
当前值为 250 和 249时
1-250/400 =0.375
1-249/400 =0.3775
如果只保留小数到2位 则画出来的高度是一样的 建议多保留几位小数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant