如何在 MPAndroidChart 中增加水平图表值文本大小 [英] How to increase the horizontal chart value text size in MPAndroidChart

查看:34
本文介绍了如何在 MPAndroidChart 中增加水平图表值文本大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 MPAndroidChart,我想在条形图的中心设置条形图值,并使用更大的字体.

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

    mChart.setDrawValueAboveBar(false);

通过使用上面的值显示在条形内部但不在中心.我正在使用 MpChart提前致谢

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

推荐答案

默认情况下,无法将值居中,您必须自己添加该功能.

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

关于文本大小,请尝试:barDataSet.setValueTextSize(...)

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

这篇关于如何在 MPAndroidChart 中增加水平图表值文本大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆