Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove all slice text from Pie Chart (ios-charts/mpandroidchart)

Tags:

I know the method for removing the x-values but how do I remove the y-values. I basically don't want ANY text on my Pie Chart.

The image shows the current-state with the 80.0 and 20.0 labels on top of the pie chart. pie chart

like image 719
Husein Kareem Avatar asked Aug 13 '15 15:08

Husein Kareem


1 Answers

To remove the Y-Values

Use dataset.setDrawValues(false);

To remove the X-Values

Use MyPieChart.setDrawSliceText(false);

like image 149
onDroid Avatar answered Oct 04 '22 06:10

onDroid