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

Large dataset performance #3410

Closed
jvolf-zolo opened this issue Oct 3, 2016 · 3 comments
Closed

Large dataset performance #3410

jvolf-zolo opened this issue Oct 3, 2016 · 3 comments

Comments

@jvolf-zolo
Copy link

We're trying to use Chartjs with a large amount of data (up to 100k data points), and when the chart updates it is locking up the browser. Is there a maximum number or data points that can be used?

Thanks for your help.

@etimberg
Copy link
Member

etimberg commented Oct 3, 2016

@jvolf-zolo you should probably limit the number of points to width in px * 4 as a maximum. At the moment, we don't have any built-in decimation so you would need to decimate before sending data to the chart.

It might be worthwhile to build a plugin that does decimation as part of the update process

@etimberg
Copy link
Member

Closing as answered. For further questions, it is probably best to answer on our slack channel

@CAPTelmo2165
Copy link

@etimberg I'm trying to use chartjs to plot chromatography data (so lots of points) and wondered if you could elaborate a little more on the 'width in px * 4' approach you mentioned above please?

Also, I have a lot of zeros in my data and the above algorithm suggested by @bbb31 seems to fall foul of a divide by 0. If anyone could help me adjust it to get around that I'd be most grateful.

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

No branches or pull requests

3 participants