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 0 as a valid point label #6279

Merged
merged 1 commit into from May 16, 2019
Merged

Conversation

nagix
Copy link
Contributor

@nagix nagix commented May 16, 2019

When a point label is a number 0, it is treated a falsy value and overwritten by ''. This PR fixes it so that 0 is treated as a valid point label.

Master: https://jsfiddle.net/nagix/4mjqtLz0/
Screen Shot 2019-05-16 at 1 56 52 PM

This PR: https://jsfiddle.net/nagix/htbuyj3L/
Screen Shot 2019-05-16 at 1 57 50 PM

@simonbrunel simonbrunel added this to the Version 2.9 milestone May 16, 2019
@simonbrunel simonbrunel merged commit e35b889 into chartjs:master May 16, 2019
@nagix nagix deleted the issue-6279 branch May 16, 2019 18:51
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

4 participants