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

Fix generateTicks when working with tiny numbers #5948

Merged
merged 9 commits into from
Jan 9, 2019

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Jan 1, 2019

http://jsfiddle.net/eg3894u5/3/ Update: http://jsfiddle.net/eg3894u5/4/ Another update: http://jsfiddle.net/eg3894u5/5/ Sanitizing v1: http://jsfiddle.net/eg3894u5/6/ Latest version: http://jsfiddle.net/eg3894u5/7/

https://codepen.io/kurkle/pen/WLzeJM (9b69423)

Fixes: #5932

@etimberg
Copy link
Member

etimberg commented Jan 1, 2019

@kurkle What would be the best way to test this?

@kurkle
Copy link
Member Author

kurkle commented Jan 1, 2019

@kurkle What would be the best way to test this?

Added a simple test for the specific issue.

@benmccann
Copy link
Contributor

@kurkle can you rebase this PR against master?

benmccann
benmccann previously approved these changes Jan 2, 2019
@kurkle
Copy link
Member Author

kurkle commented Jan 3, 2019

After discussing this with @simonbrunel, found a much cleaner solution.

benmccann
benmccann previously approved these changes Jan 3, 2019
@kurkle

This comment has been minimized.

@simonbrunel

This comment has been minimized.

@kurkle

This comment has been minimized.

@kurkle kurkle changed the title Work around rounding issue in generateTicks by increasing spacing until we get a range. Fix generateTicks when working with tiny numbers Jan 3, 2019
@simonbrunel

This comment has been minimized.

@kurkle

This comment has been minimized.

@kurkle
Copy link
Member Author

kurkle commented Jan 7, 2019

rebased

@simonbrunel simonbrunel merged commit 9d7eacd into chartjs:master Jan 9, 2019
@simonbrunel
Copy link
Member

Thanks @kurkle

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.

5 participants