In the following image there is a space between the xAxis of the chart and the bottom of the bars, the area in red.
I want to know how to remove such space so the labels get closer to the bars. Here is my code:
let chart = BarChartView()
chart.leftAxis.drawGridLinesEnabled = true
chart.leftAxis.drawAxisLineEnabled = false
chart.leftAxis.axisLineColor = .paleBlue
chart.rightAxis.drawGridLinesEnabled = false
chart.rightAxis.drawAxisLineEnabled = false
chart.rightAxis.drawLabelsEnabled = false
chart.xAxis.drawGridLinesEnabled = false
chart.xAxis.labelPosition = .bottom
chart.xAxis.centerAxisLabelsEnabled = true
chart.xAxis.granularityEnabled = true
chart.xAxis.enabled = true
chart.legend.enabled = true
chart.legend.horizontalAlignment = .center
chart.doubleTapToZoomEnabled = false
chart.pinchZoomEnabled = false
chart.noDataText = ""