I just called chartView.setVisibleXRangeMaximum(3) and its works fine for the first time. I can see first 3 bars and the horizontal scrolls are enabled.
chartView.setVisibleXRangeMaximum(3)