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

后端 未结 4 1939

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 08:02

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

提交回复
热议问题