Skip to content

Bug null data #286

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

Merged
merged 5 commits into from
Feb 26, 2016
Merged

Bug null data #286

merged 5 commits into from
Feb 26, 2016

Conversation

mdtusz
Copy link
Contributor

@mdtusz mdtusz commented Feb 25, 2016

Fixes #271.

Real short fix. I'm not too sure where best to put the tests for this one though so I created a new testfile. I'm happy to move them into an existing file if there is a suitable place though.

@mdtusz mdtusz added status: reviewable bug something broken labels Feb 25, 2016

var c = ax._categories.indexOf(v);
return c===-1 ? constants.BADNUM : c;
if(v !== null && v !== undefined && ax._categories.indexOf(v) === -1){
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, maybe we should make that standard: http://eslint.org/docs/rules/no-eq-null

@etpinard
Copy link
Contributor

Awesome. I'm gonna jump on this branch to add an image test at some before the next release.

@mdtusz
Copy link
Contributor Author

mdtusz commented Feb 25, 2016

👍

@etpinard
Copy link
Contributor

💃 for me

mdtusz added a commit that referenced this pull request Feb 26, 2016
@mdtusz mdtusz merged commit f712283 into master Feb 26, 2016
@mdtusz mdtusz deleted the bug-null-data branch February 26, 2016 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null data points on categorical axes should be ignored
2 participants