I tried setting yAxis to integer using NSNumberFormatter,
yAxis.valueFormatter = NSNumberFormatter()
yAxis.valueFormatter.minimumFractionDigits = 0
but the problem here is I am getting duplicate yAxis values - 0, 1, 2, 2, 3, 4 and 5. How this can be eliminated?
These are the issues I am facing. I tried setting
barChart.leftAxis.axisMaximum = 5.0
barChart.leftAxis.axisMinimum = 0.0
barChart.leftAxis.customAxisMin = 0
barChart.leftAxis.customAxisMax = 5.0
but not helping any suggestions?