android - MPAndroidChart - How to change the color of PieChart center Background? -


im trying use mpandroidchart library develop circular chart. pie chart available. tried giving 2 xvalue coordinates, 1 color similar background. got similar circular chart. i'm not able change background color , font color of center text inside pie chart?

thanks!

there 2 possible solutions:

retrieve paint object used chart draw "center-hole" , modify way want

paint p1 = mchart.getpaint(chart.paint_hole); p1.setcolor(...);  paint p2 = mchart.getpaint(chart.paint_center_text); p2.setcolor(...); 

or use this, if display 1 value anyway: circledisplay


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -