Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Certain values are not visible in MPAndroidChart?

I am using MPAndroidChart to display my charts, in the barchart it displays some values perfectly but for some other values, the bar is visible and can be highlighted but its value is not visible.

Any clue please on how to fix this ?

This is a picture to clarify what I am saying. The red areas is where the bar is visible but not its value. charts

like image 817
MeknessiHamida Avatar asked Dec 11 '25 04:12

MeknessiHamida


1 Answers

Before setting the data (sorry I couldn't find the data in your question):

graph.setVisibleYRangeMaximum(barDataSet.getYMax() + 20, YAxis.AxisDependency.LEFT);

replacing 20 with the height of your custom layout.

like image 87
Raj Avatar answered Dec 14 '25 00:12

Raj