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

Optimization: prevent double ticks array reverse for logarithmic scale #5076

Merged

Conversation

jcopperfield
Copy link
Contributor

Currently the logarithmic scale reverses the ticks for vertical axis and then checks if the axis is reverse and reverse it again.
The optimization sets the reverse flag for vertical axis and inverts the flag for the reverse ticks option, so that the reverse action is only applied once.

…hmic axis

              with ticks option 'reverse: true'.
Copy link
Member

@simonbrunel simonbrunel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @jcopperfield

@etimberg etimberg merged commit 92d033b into chartjs:master Dec 23, 2017
@jcopperfield jcopperfield deleted the PR-20171223-buildticks-optimization branch December 23, 2017 14:43
yofreke pushed a commit to yofreke/Chart.js that referenced this pull request Dec 30, 2017
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants