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

Treat null as NaN in radialLinear scale #6282

Merged
merged 2 commits into from May 21, 2019
Merged

Conversation

nagix
Copy link
Contributor

@nagix nagix commented May 17, 2019

Currently null value is treated as the minimum value on a radialLinear scale. To be consistent with other scales, null should be treated as NaN.

Master: https://jsfiddle.net/nagix/vskjcz41/
Screen Shot 2019-05-17 at 1 12 55 AM

This PR: https://jsfiddle.net/nagix/g6x7Lt91/
Screen Shot 2019-05-17 at 1 13 18 AM

kurkle
kurkle previously approved these changes May 17, 2019
@nagix
Copy link
Contributor Author

nagix commented May 17, 2019

I realized it's ok to directly return NaN.

etimberg
etimberg previously approved these changes May 17, 2019
kurkle
kurkle previously approved these changes May 17, 2019
benmccann
benmccann previously approved these changes May 18, 2019
@simonbrunel simonbrunel added this to the Version 2.9 milestone May 21, 2019
@simonbrunel
Copy link
Member

@nagix tests of this PR need to be updated after the merge of #6281

@nagix
Copy link
Contributor Author

nagix commented May 21, 2019

Rebased and updated image tests based on #6281.

@simonbrunel simonbrunel merged commit 03a3199 into chartjs:master May 21, 2019
@nagix nagix deleted the issue-6282 branch May 21, 2019 09:50
@simonbrunel
Copy link
Member

Thanks @nagix

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

5 participants