How to hide chart Lables ? How to add axis titles ?
Hello, I tried to hide chart value labels but I can't figure it out, Here is the current charts that I Have:


Is it possible to hide these labels ? And another issue, is it possible to add axis Titles ? like the one that I have for Bar Chart (I used separate Text view for that Calories title)
And also currently the pie chart have animations and interactions, How can I disable that ?
Thank a lot.
dataSet.setDrawValues(false)
It's all in the documentation. Concerning the axis-title: I have no idea where that comes from, this library does not even support axis-titles.
Hi Philipp, dataSet.setDrawValues(false) on a pieChartDataSet just makes it so that it hides the values. What if I need it to show the values but hide what's in xValues ? (currently shows "option A 30" & "option B 70", need only "30" and "70" also, would like to make the font bigger Thank you
I think to hide description values is to add blank string like this.
ArrayList
PieData dataPercorso = new PieData(xVals, dataset);
This will hide Legends also.. Any other way to hide only xvalues alone?
eg. mChart.getXAxis().setDrawLabels(false);
@coolscott It doesn't work. there is no method called getXAxis() is available.
sorry. yes~ it's PieData. try mPieChart.isDrawSliceTextEnabled() instead.
You meant mPieChart.setDrawSliceTextEnabled(false) right? Yes, it works. Your swift help has made my day. Thanks a lot @coolscott
bingo. it's my pleasure.
I know this is an old thread, but I can't locate mPieChart.setDrawSliceTextEnabled(false) method anymore. It seems to be have been removed. Is there an alternate way to hide just the labels on the chart but not the legend?
Found the answer almost immediately looking at the code. Just for completion sake, the method to use now is : mPieChart.setDrawEntryLabels(false)
@coolscott isDrawSliceTextEnabled method is not resolved with latest version.