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

Husein Kareem picture Husein Kareem · Aug 13, 2015 · Viewed 16.6k times · Source

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

Answer

onDroid picture onDroid · Aug 14, 2015

To remove the Y-Values

Use dataset.setDrawValues(false);

To remove the X-Values

Use MyPieChart.setDrawSliceText(false);