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

Performance issue with lots of labels #5764

Closed
desean1625 opened this issue Oct 11, 2018 · 2 comments
Closed

Performance issue with lots of labels #5764

desean1625 opened this issue Oct 11, 2018 · 2 comments

Comments

@desean1625
Copy link

Scales are measuring the longest text for all ticks including skipped ticks, this causes a decrease in performance. Changing

var labels = labelsFromTicks(me._ticks);

to

var labels = tickOpts.autoSkip ? me._autoSkip(me.getTicks()) : me.getTicks(); 

Increases performance

@desean1625
Copy link
Author

I created a PR
#5765

@kurkle
Copy link
Member

kurkle commented Feb 22, 2021

This has been fixed in many ways already, for example the sampleSize option:
https://www.chartjs.org/docs/master/axes/cartesian/category#common-tick-options-to-all-cartesian-axes

@kurkle kurkle closed this as completed Feb 22, 2021
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