How to increase the horizontal chart value text size in MPAndroidChart

偶尔善良 提交于 2020-01-03 16:57:05

问题


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


回答1:


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


来源:https://stackoverflow.com/questions/30236069/how-to-increase-the-horizontal-chart-value-text-size-in-mpandroidchart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!