I need to create a bar graph to display some stats data, which I am able to display using iOS charts library. Only issue I am facing is that, the value labels above the bars are printed as double, I need them as integers. I have tried searching it, but no positive results. Below is my code:
barChartView = BarChartView()
barChartView.frame = screen.bounds
barChartView.delegate = self
barChartView.backgroundColor = UIColor.clear
barChartView.layer.opacity = 0.0
barChartView.chartDescription?.text = ""
self.view.addSubview(barChartView)
Any help is appreciated.