I am using iOSCharts for swift by @danielgindi https://github.com/danielgindi/Charts
So here is my data set
let dateArray = [26,27,28,29,30,01,02]
let values = [11.0,5.0,0.0,0.0,4.0,1.0,0.0]
var dataEntries: [BarChartDataEntry] = []
for i in 0..<dateArray.count {
let dataEntry = BarChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let data = BarChartData()
let ds1 = BarChartDataSet(values: dataEntries, label: "Hello")
ds1.colors = [NSUIColor.red]
data.addDataSet(ds1)
self.barChartView.data = data
self.barChartView.fitBars = true
self.barChartView.gridBackgroundColor = NSUIColor.white
self.barChartView.chartDescription?.text = ""
but what I get is this
So as you can see the problems are below
1) Graph starting from one grid above, you see space at the bottom 2) xaxis labels are different, I am not sure how to set them. 3) I want to show x axis and y axis labels as int and not double.

