Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

draw the scattered graph for every 10 seconds using Coreplot in iOS

I would like to draw the graph for every second like the AccelerometerGraph example by apple . But only one change in drawing is I have to draw the graph based on x and y axis . I have tried using the Coreplot . It is showing the graph once we store the values in the array statically . But I have to draw dynamically

like image 856
user247 Avatar asked Dec 29 '25 14:12

user247


1 Answers

inside didAccelerate delegate you can update your array and call [graph reloadData]; to update your coreplot graph. or if you want it to draw after every 10 seconds then call reloadData after 10 seconds delay.

like image 103
BhushanVU Avatar answered Dec 31 '25 04:12

BhushanVU



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!