Text 如何增加MPAndroid条形图顶部文本值的大小?

Text 如何增加MPAndroid条形图顶部文本值的大小?,text,charts,bar-chart,Text,Charts,Bar Chart,我使用MPAndroid图表创建了一个图表。我想知道如何增加MPAndroid条形图中每个条形顶部的文本值的大小?我应该使用哪种API?我已将所附图片中的数值用红色圆圈圈出 经过一些试验,我终于找到了问题的答案。这是在MPandroid图表上设置左右Y轴字体大小的代码 import com.github.mikephil.charting.charts.CombinedChart; //Code snippet CombinedChart combinedChart

我使用MPAndroid图表创建了一个图表。我想知道如何增加MPAndroid条形图中每个条形顶部的文本值的大小?我应该使用哪种API?我已将所附图片中的数值用红色圆圈圈出


经过一些试验,我终于找到了问题的答案。这是在MPandroid图表上设置左右Y轴字体大小的代码

    import com.github.mikephil.charting.charts.CombinedChart;

 //Code snippet



      CombinedChart combinedChart = (CombinedChart) findViewById(R.id.chart);
      YAxis yaLeft = combinedChart.getAxisLeft();
      YAxis yaRight = combinedChart.getAxisRight();
      yaLeft.setTextSize(14/*textSize*/);
      yaRight.setTextSize(14/*textSize*/);

你可以使用

barDataset.setValueTextSize(12f);
其中
barDataset
基本上是
barDataset

,这个函数是dataSet.setValueTextSize(int);