diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index 8c5977e1957..fddd5ce9889 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -57,7 +57,7 @@ export default class LineController extends DatasetController { line._chart = this.chart; line._datasetIndex = this.index; line._decimated = !!_dataset._decimated; - line.points = points.slice(Math.max(this._drawStart - 1, 0), this._drawStart + this._drawCount); + line.points = points; const options = this.resolveDatasetElementOptions(mode); if (!this.options.showLine) { diff --git a/test/fixtures/controller.line/cubicInterpolationMode/scaleMInMaxLimits.js b/test/fixtures/controller.line/cubicInterpolationMode/scaleMInMaxLimits.js deleted file mode 100644 index 605ac186461..00000000000 --- a/test/fixtures/controller.line/cubicInterpolationMode/scaleMInMaxLimits.js +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - config: { - type: 'line', - data: { - datasets: [ - { - data: [ - {x: -10, y: 150}, - {x: 0, y: 81}, - {x: 10, y: 49}, - {x: 20, y: 32}, - {x: 30, y: 21}, - {x: 35, y: 1}, - {x: 40, y: 16}, - {x: 45, y: 13}, - ], - borderColor: '#ff0000', - cubicInterpolationMode: 'monotone' - } - ] - }, - options: { - scales: { - x: {display: false, type: 'linear', min: 5, max: 37}, - y: {display: false} - } - } - }, - options: { - canvas: { - height: 256, - width: 512 - } - } -}; diff --git a/test/fixtures/controller.line/cubicInterpolationMode/scaleMInMaxLimits.png b/test/fixtures/controller.line/cubicInterpolationMode/scaleMInMaxLimits.png deleted file mode 100644 index 056d4510167..00000000000 Binary files a/test/fixtures/controller.line/cubicInterpolationMode/scaleMInMaxLimits.png and /dev/null differ diff --git a/test/fixtures/controller.line/cubicInterpolationMode/scaleMaxLimit.js b/test/fixtures/controller.line/cubicInterpolationMode/scaleMaxLimit.js deleted file mode 100644 index 6bae22dfeee..00000000000 --- a/test/fixtures/controller.line/cubicInterpolationMode/scaleMaxLimit.js +++ /dev/null @@ -1,35 +0,0 @@ -module.exports = { - config: { - type: 'line', - data: { - datasets: [ - { - data: [ - {x: -10, y: 150}, - {x: 0, y: 81}, - {x: 10, y: 49}, - {x: 20, y: 32}, - {x: 30, y: 21}, - {x: 35, y: 1}, - {x: 40, y: 16}, - {x: 45, y: 13}, - ], - borderColor: '#ff0000', - cubicInterpolationMode: 'monotone' - } - ] - }, - options: { - scales: { - x: {display: false, type: 'linear', max: 30}, - y: {display: false} - } - } - }, - options: { - canvas: { - height: 256, - width: 512 - } - } -}; diff --git a/test/fixtures/controller.line/cubicInterpolationMode/scaleMaxLimit.png b/test/fixtures/controller.line/cubicInterpolationMode/scaleMaxLimit.png deleted file mode 100644 index 048c8c39084..00000000000 Binary files a/test/fixtures/controller.line/cubicInterpolationMode/scaleMaxLimit.png and /dev/null differ