Skip to content

Commit

Permalink
Fix normalize when null values at edge of dataset (#8547)
Browse files Browse the repository at this point in the history
* Fix normalize when null values at edge of dataset

* Fix test with mismatched number of points
  • Loading branch information
benmccann authored Mar 1, 2021
1 parent e2a50b9 commit 3214005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/core.datasetController.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ export default class DatasetController {
parsed = _parsed[i];
value = parsed[scale.axis];
otherValue = parsed[otherScale.axis];
return (!isFinite(value) || !isFinite(otherValue) || otherMin > otherValue || otherMax < otherValue);
return !isFinite(value) || otherMin > otherValue || otherMax < otherValue;
}

for (i = 0; i < ilen; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/scale.time/ticks-reverse-linear.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
type: 'line',
data: {
labels: ['2017', '2019', '2020', '2025', '2042'],
datasets: [{data: [0, 1, 2, 3, 4, 5], fill: false}]
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
},
options: {
scales: {
Expand Down

0 comments on commit 3214005

Please sign in to comment.