Jan
27
3 hours ago
Activity icon
fork

zlanchun forked danielgindi/Charts

⚡ Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
zlanchun Apache License 2.0 Updated
fork time in 10 minutes ago
started
started time in 2 hours ago
Jan
26
1 day ago
started
started time in 4 hours ago
started
started time in 5 hours ago
started
started time in 13 hours ago
Activity icon
issue

kartiksharma007 issue comment danielgindi/Charts

kartiksharma007
kartiksharma007

Using Charts library for real-time plotting

Hi Daniel,

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

Activity icon
issue

kartiksharma007 issue comment danielgindi/Charts

kartiksharma007
kartiksharma007

Using Charts library for real-time plotting

Hi Daniel,

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

kartiksharma007
kartiksharma007

hi just wanted to ask if we in any way you can help as the data which we have is in a single array , so that means no x or y axis.

started
started time in 16 hours ago
started
started time in 23 hours ago
started
started time in 1 day ago
Previous