Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide drawn values in MPAndroidChart?

I need to hide the value above bars in MPAndroidChart for barchart. I have tried all the methods available in it , but could not find the solution.

like image 919
vaibhav Avatar asked Jun 10 '15 13:06

vaibhav


1 Answers

Try dataSet.setDrawValues(false). This will prevent any values from being drawn.

In case you want to alter (customise) the drawn values (or only individual values), you can use the ValueFormatter interface and implement your own logic (e.g. hide specific values based on a condition). Always keep in mind performance is critical when using the ValueFormatter.

like image 88
Philipp Jahoda Avatar answered Oct 12 '22 22:10

Philipp Jahoda