Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Large number of data points -- addEntry() #333

Closed
ajaybhat1987 opened this issue Aug 31, 2015 · 5 comments
Closed

Adding Large number of data points -- addEntry() #333

ajaybhat1987 opened this issue Aug 31, 2015 · 5 comments

Comments

@ajaybhat1987
Copy link

My requirement is to draw/plot real time graph.

I am using Remote I/O units and apple accelerate framework to extract raw audio sample and perform FFT for frequency analysis. (approx with around 44100 data packets /sec or LESS )

Can I use ios-charts with such huge amount of real time data flowing?
What is the best way possible to display huge number of audio samples per second in graph UI. (SImilar to other graph engines). Please help.
Can it be possible similar to https://www.youtube.com/watch?v=DOwCKfRdn5k

Thank you,
Ajay

@liuxuan30
Copy link
Member

I think you could, but the performance is what I worried. I tried ~1000 data points in one chart, works great. Not sure how many entries you would have in one chart?

@ajaybhat1987
Copy link
Author

@liuxuan30 The graph seems to get clumsy and slow.. I am not able to test for more than ~ 1000 data points in an average.. Can you suggest if i am doing it right -
I am calling the method " - (void)addEntry:(ChartDataEntry * __nonnull)e dataSetIndex:(NSInteger)dataSetIndex;" multiple times after giving a short delay.. Is it the right way? Any reference for this to work this out...
Thank you, Ajay

@liuxuan30
Copy link
Member

Sorry pal I haven't tried addEntry like your case. You need to try on your side. You could use addEntry, but I am wondering if each adding will cause a re-render and slow you down.

@liuxuan30
Copy link
Member

@ajaybhat1987 have you tried it?

@liuxuan30
Copy link
Member

Closing - feel free to reopen if any problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants