MPAndroidChart PieChart how to change the center text to display the different color and font size

后端 未结 4 1466
轮回少年
轮回少年 2021-02-11 07:36

Currently I use the MPAndroidChart from GITHUB and draw the piechart to display the two line text, each line has different color and different font size,I check the source codes

4条回答
  •  北海茫月
    2021-02-11 07:58

    Use public void setCenterText(CharSequence text) on the chart and pass a SpannableString as its argument. Style your SpannableString to your heart's content.

提交回复
热议问题