Skip to content

Commit 3214005

Browse files
authored
Fix normalize when null values at edge of dataset (#8547)
* Fix normalize when null values at edge of dataset * Fix test with mismatched number of points
1 parent e2a50b9 commit 3214005

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/core.datasetController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export default class DatasetController {
566566
parsed = _parsed[i];
567567
value = parsed[scale.axis];
568568
otherValue = parsed[otherScale.axis];
569-
return (!isFinite(value) || !isFinite(otherValue) || otherMin > otherValue || otherMax < otherValue);
569+
return !isFinite(value) || otherMin > otherValue || otherMax < otherValue;
570570
}
571571

572572
for (i = 0; i < ilen; ++i) {

test/fixtures/scale.time/ticks-reverse-linear.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
type: 'line',
55
data: {
66
labels: ['2017', '2019', '2020', '2025', '2042'],
7-
datasets: [{data: [0, 1, 2, 3, 4, 5], fill: false}]
7+
datasets: [{data: [0, 1, 2, 3, 4], fill: false}]
88
},
99
options: {
1010
scales: {

0 commit comments

Comments
 (0)