]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Typo
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 14 Nov 2015 03:42:42 +0000 (22:42 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 14 Nov 2015 03:42:42 +0000 (22:42 -0500)
src/controllers/controller.line.js
src/controllers/controller.radar.js

index c22df9f97e1eea0a53984b0f1e4eb96d0a3e865f..2f2ef279d332c63f438cfff7324edde7adcc541e 100644 (file)
 
                                // 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);
index 5e452820db9648a3ab805bde49d6c4ab9de34a36..639c8772269087038cbaab7b33be8b3d602a7230 100644 (file)
 
                                // 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);