Is there a way to hide value labels for each column in the histogram in MPAndroidChart?

I am using MPAndroidChart . I need to hide the value label marked above the bar on my BarChart. How can i do this?

Image example

+4
source share
2 answers

Yes, there is a way.

Just call

dataSet.setDrawValues(false);
+11
source

https://github.com/PhilJay/MPAndroidChart/blob/master/MPChartLib/src/com/github/mikephil/charting/renderer/BarChartRenderer.java

316 - , . . , , gradle jar, , ,

176 . , .

drawValueAboveBar, , , .

, , - TRANSPARENT.

mValuePaint.setColor() .

-1

Source: https://habr.com/ru/post/1605823/


All Articles