iOS Charts Disable Zoom

Viewed 553

How do you disable zoom for iOS Charts but not completely stop user interaction? For example, still using the highlight tap. This takes care of the zoom, but it disables everything else as well.

chartView.userInteractionEnabled = false    
1 Answers

To disable zoom, but not impact other chart interaction, make these adjustments:

chartView.doubleTapToZoomEnabled = false
chartView.pinchZoomEnabled = false
chartView.scaleXEnabled = false
chartView.scaleYEnabled = false
Related