不多说,直接上代码:
public void standard(double cormax, double cormin, double cornumber) { double realmaxmoney, realminmoney, corstep, tmpstep, tmpnumber, temp, extranumber; Log.d("yangbin---", "cormax:--" + cormax + "--cormin:--" + cormin + "--cornumber:--" + cornumber); realmaxmoney = Double.valueOf(cormax); realminmoney = Double.valueOf(cormin); if (cormax <= cormin) return; corstep = (cormax - cormin) / cornumber; if (Math.pow(10, (int) (Math.log(corstep) / Math.log(10))) == corstep) { temp = Math.pow(10, (int) (Math.log(corstep) / Math.log(10))); } else { temp = Math.pow(10, ((int) (Math.log(corstep) / Math.log(10)) + 1));
画统计图、柱状图X轴、Y轴的刻度坐标标度算法
最新推荐文章于 2022-12-20 18:05:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)