diff --git a/src/core/core.datasetController.js b/src/core/core.datasetController.js index 7413ec954fe..ba115644435 100644 --- a/src/core/core.datasetController.js +++ b/src/core/core.datasetController.js @@ -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) { diff --git a/test/fixtures/scale.time/ticks-reverse-linear.js b/test/fixtures/scale.time/ticks-reverse-linear.js index cf2a804eaff..e19cf51912d 100644 --- a/test/fixtures/scale.time/ticks-reverse-linear.js +++ b/test/fixtures/scale.time/ticks-reverse-linear.js @@ -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: {