I\'m building a chart using iOS-charts
I\'m trying to convert the floats into int, but iOS-charts
For Swift 3.0 and Charts 3.0 you need to enable and set granularity for the axis.
Example:
barChart.leftAxis.granularityEnabled = true barChart.leftAxis.granularity = 1.0