How can I set the maximum height of a horizontal bar in MPAndroidChart?

I am using MPAndroidChart library . In a horizontal bar chart, how do I set the maximum height of a bar? enter image description hereAnd how to set the background color of the bar.

+3


source to share


1 answer


The height of the bar itself is calculated by the number of elements in HorizontalBarChart

. There is no way to directly change this.



What you can do is make the entire height of the chart smaller if it has fewer values.

+2


source







All Articles