In CombinedChart adding chart.setFitBars(true) , the first and last columns are displayed.
I need to do the same to combine LineChart with BarChart.
Now the first and last bars are not displayed completely.

I tried
xAxis.setAxisMaximum(data.getXMax() + 1f);
to stretch the X-Axis towards the right side so that the last bar gets enough space. It did the trick.
But what should I do for the left sidebar?
setAxisMinimum does not help.
After adding setAxisMaximum :

EDIT
I named this one , but it gives a solution only for BarChart .
mpandroidchart
Prabs
source share