I am working on a chart, with the "danielgindi/Charts" ( iOS-charts ), I want to be able to show the grid lines for the Y axis, but without the base.
This should be the result:
But I am stuck and can't get the lines without having to enable the left axis.
This is what I am getting, I want to get rid of the line to the left. ( The one the red arrow is pointing to )
Here is some of my code:
func setupChart(data: LineChartData ) {
chartView.delegate = self
chartView.backgroundColor = .white
chartView.chartDescription?.enabled = false
chartView.dragEnabled = false
chartView.setScaleEnabled(false)
chartView.pinchZoomEnabled = false
chartView.setViewPortOffsets(left: 10, top: 0, right: 10, bottom: 0)
chartView.legend.enabled = false
chartView.leftAxis.enabled = true
chartView.leftAxis.labelCount = 3
chartView.leftAxis.spaceTop = 0.70
chartView.leftAxis.spaceBottom = 0.20
chartView.rightAxis.enabled = false
chartView.xAxis.enabled = false
chartView.data = data
}
Any help is appreciated !!