-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Sample Charts are Laggy in Firefox since Version 2.8.0 #7682
Comments
@ThatIsAPseudo do you see similar lag in v3 alpha? https://www.chartjs.org/samples/master/charts/pie.html |
@etimberg Yes, v3 is slow as well. |
For v2, the docs use gitbook and chartjs is injected through plugin. In v3 we moved away from gitbook, so it does not really make sense to update the gitbook plugin anymore. May I ask what kind of environment are you using to detect the lag? All using chrome, because its easy to do the benchmark in that. So that would suggest that v2.7.0 is actually the slowest one. There have been some improvement on the border drawing, so there is a little bit more computing in later versions. But it is really insignificant at least in the ways I can measure it. |
Well, I just tried to replicate the issue but everything seems to be working well. I don't know if changes were made but the example I pointed out as laggy (https://www.chartjs.org/samples/latest/charts/pie.html) is smooth now. |
Closing as not reproducible. Please reopen, if you find a way. |
Documentation Is:
Please Explain in Detail...
I did not understand why the documentation's examples were really smooth and responsive whereas my own code was laggy and slow.
Turns out 2.8 and above slows down (my?) charts (I may fill another issue for this), and despite the tag
latest
in the documentation's url (www.chartjs.org/docs/latest/charts/doughnut.html), some examples seem to still use an older version.(But it looks like the Samples use a more recent version since they are slower.)
Your Proposal for Changes
Examples should all be using the version of Chartjs tagged in the URL to avoid confusion.
Example
Samples :
Documentation :
Edit: I used Firefox; with Chrome it's much less "laggy", so the difference isn't really noticeable.
The text was updated successfully, but these errors were encountered: