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

To remove the Y-Values

Use dataset.setDrawValues(false);

To remove the X-Values

Use MyPieChart.setDrawSliceText(false);


Never mind figured it out!

pieChartView.data?.setValueTextColor(UIColor.clearColor())

That at least gets it from not seeing those labels.

Also another way is setting this to false:

drawLabelsEnabled

For Charts Version 3.2.1

Both X - Y values enabled

pieChartDataSet.drawValuesEnabled = true
pieChartView.drawEntryLabelsEnabled = true

enter image description here

To remove the Y-Values

pieChartDataSet.drawValuesEnabled = false

enter image description here

To remove the X-Values

pieChartView.drawEntryLabelsEnabled = false

enter image description here