MPAndroidchart,折線圖LineChart自定義x軸,使x軸上的值與折線上的點對應

效果圖如下: 讓x軸上自定義的值和折線上相對應 xAxis.setGranularity(1); //這個很重要 自定義x軸有兩種方式: ①種: IAxisValueFormatter formatter = new IAxisValueFormatter() { @Override public String getFormattedVal
相關文章
相關標籤/搜索