10

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);
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
Shadow
  • 6,864
  • 6
  • 44
  • 93

1 Answers1

32

you need to add below line to hide label

dataSet.setDrawValues(false);
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142