Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide value labels in MPAndroidChart

How to remove the label in aBarChart. I have attached screenshot with what I want to remove marked in red. How do I remove that number?

Here is screenshot:

a bar chart with a label marked in red

                BarDataSet dataset = new BarDataSet(entries, "");
                BarData data = new BarData(labels, dataset);
                barChart.setData(data);
like image 367
Shadow Avatar asked May 18 '16 10:05

Shadow


1 Answers

you need to add below line to hide label

dataSet.setDrawValues(false);
like image 108
Amit Vaghela Avatar answered Oct 13 '22 21:10

Amit Vaghela