Thanks a lot for this great API.
I'm using Charts to plot ECG data points (versus time) in real-time and I have 100 data points coming from hardware per second. I'm saving the data in database and then plot them. Here is what I'm using to clear the chartview as well ECG voltages and times each time I'm reseting the graph:
[self.chartView clear]; [self.chartView notifyDataSetChanged]; [self.ecgVoltage removeAllObjects]; [self.ecgDate removeAllObjects];
Although I have changed the database from Core Data to Realm, I am still experiencing slow processing. Is there anything else I could do on the plotting end to save some extra processing? I'm drawing every 50 x-index, though I was wondering if there would be any way that I could assign x-index to some of my y-values as it seems to have a high CPU usage?
P.S. I thought of using custom min and max y values, as they should be refreshed due to possible noises