Skip to content

Treat 0 as a valid point label#6279

Merged
simonbrunel merged 1 commit intochartjs:masterfrom
nagix:issue-6279
May 16, 2019
Merged

Treat 0 as a valid point label#6279
simonbrunel merged 1 commit intochartjs:masterfrom
nagix:issue-6279

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.

4 participants