I am using MPAndroidChart library . In a horizontal bar chart, how do I set the maximum height of a bar? And how to set the background color of the bar.
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.