Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set pie chart to non touchable

I'm using this awesome plotter framework ios-charts. The documentation for the android version states that one can disable touch events on the charts with "setTouchEnabled(false). However I can't find this function in the iOS version. "touchesBegan" might the way to go here? I'm new to iOS programming so I'm not that familiar with touch events.

like image 305
user1259201 Avatar asked Dec 20 '22 04:12

user1259201


1 Answers

You can disable user interaction via the attributes inspector or with

chartView.userInteractionEnabled = false

enter image description here

like image 107
user1259201 Avatar answered Mar 16 '23 08:03

user1259201