![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MPchart
e网情深e
android程序猿一枚
展开
-
mpchart 如何对y轴取整及对y轴上对应显示的数据取整数
1 y轴取整 ,如下图解决方法 YAxis leftAxis = mChart.getAxisLeft(); leftAxis.setValueFormatter(new IAxisValueFormatter() { @Override public String getFormattedValue(float value, AxisBa原创 2017-10-28 16:06:55 · 6997 阅读 · 1 评论 -
使用MPchartAndroid 曲线 计算y 轴的算法
使用MPchart 计算y 轴的算法1 首先计算出y轴最大值:ymaxTemp2 对y轴坐取整计算、、、 //计算yMax yMaxTemp = yMaxTemp * 1.1f; int logN = (int) Math.log10(yMaxTemp); int mutiN = (int) Math.pow(10,原创 2017-09-13 10:48:44 · 1485 阅读 · 0 评论 -
MPAndroidChart 教程:坐标轴,X轴,Y轴,Labels(三)
章索引: MPAndroidChart 教程:概述 MPAndroidChart 教程:开始 Getting Started(一) MPAndroidChart 教程:与图表进行手势交互 Interaction with the Chart(二) MPAndroidChart 教程:坐标轴,X轴,Y轴,Labels(三) MPAndroidChart 教程:设置数据,设置颜色(四) MPAndro...转载 2018-04-09 16:11:48 · 8252 阅读 · 0 评论