From: Evert Timberg Date: Sat, 14 Nov 2015 03:42:42 +0000 (-0500) Subject: Typo X-Git-Tag: 2.0.0-beta1~25^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6ac7d9369d9a261cd9208aacafe2301fdf2b490;p=thirdparty%2FChart.js.git Typo --- diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index c22df9f97..2f2ef279d 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -253,7 +253,7 @@ // Prevent the bezier going outside of the bounds of the graph point._model.controlPointPreviousX = Math.max(Math.min(controlPoints.previous.x, this.chart.chartArea.right), this.chart.chartArea.left); - point._model.controlPointPreviousY = Math.max(Math.min(controlPoints.previous.y, this.chart.chartArea.bottom), this.chart.chartArea.bottom); + point._model.controlPointPreviousY = Math.max(Math.min(controlPoints.previous.y, this.chart.chartArea.bottom), this.chart.chartArea.top); point._model.controlPointNextX = Math.max(Math.min(controlPoints.next.x, this.chart.chartArea.right), this.chart.chartArea.left); point._model.controlPointNextY = Math.max(Math.min(controlPoints.next.y, this.chart.chartArea.bottom), this.chart.chartArea.top); diff --git a/src/controllers/controller.radar.js b/src/controllers/controller.radar.js index 5e452820d..639c87722 100644 --- a/src/controllers/controller.radar.js +++ b/src/controllers/controller.radar.js @@ -199,7 +199,7 @@ // Prevent the bezier going outside of the bounds of the graph point._model.controlPointPreviousX = Math.max(Math.min(controlPoints.previous.x, this.chart.chartArea.right), this.chart.chartArea.left); - point._model.controlPointPreviousY = Math.max(Math.min(controlPoints.previous.y, this.chart.chartArea.bottom), this.chart.chartArea.bottom); + point._model.controlPointPreviousY = Math.max(Math.min(controlPoints.previous.y, this.chart.chartArea.bottom), this.chart.chartArea.top); point._model.controlPointNextX = Math.max(Math.min(controlPoints.next.x, this.chart.chartArea.right), this.chart.chartArea.left); point._model.controlPointNextY = Math.max(Math.min(controlPoints.next.y, this.chart.chartArea.bottom), this.chart.chartArea.top);