Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the horizontal chart value text size in MPAndroidChart

I am using MPAndroidChart, I want to set the barchart values in center of the bar and with bigger font.

    mChart.setDrawValueAboveBar(false);

By using the above the value is shown inside the bar but not at the center.I am using MpChart Thanks in advance

like image 915
swati Avatar asked May 14 '15 11:05

swati


1 Answers

By default, it is not possible to center the values, you will have to add that feature yourself.

Concerning the textsize, try: barDataSet.setValueTextSize(...)

  • Styling individual DataSets
  • Styling all ChartData
like image 101
Philipp Jahoda Avatar answered Oct 22 '22 20:10

Philipp Jahoda