Search code examples
mpandroidchartios-charts

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


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


Solution

  • 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