i have a Line Chart view in my iOS app.
@IBOutlet weak var lineChartView: LineChartView!
the zooming and touching is enabled. I do not let the user do anything in the chart, even selecting is not allowed.
I tried:
self.lineChartView.pinchZoomEnabled = false
self.lineChartView.dragEnabled = false
self.lineChartView.dragDecelerationEnabled = false
but without any luck. I can still touch the graph and see the cross. I even can pinch to zoom the graph.
How can i turn this behaviour off?+
In case anyone would like it to still drag but only disable zooming, you can try
self.lineChart.setScaleEnabled(false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With