Algorithm used to interpolate a smooth curve from the discrete data points changed to 'monotone'. With the default value, over- and undershoots are easily generated. In contrast, the 'monotone' setting keeps (piecewise) monotonicity and ensures that local extrema stay at data points.

This commit is contained in:
DL6ER
2016-11-08 00:37:24 +01:00
parent a6de221647
commit aa5bec9103
+4 -2
View File
@@ -45,7 +45,8 @@ $(document).ready(function() {
pointBorderColor: "rgba(0, 166, 90,.8)",
pointRadius: 0,
data: [],
pointHitRadius: 20
pointHitRadius: 20,
cubicInterpolationMode: 'monotone'
},
{
label: "Ad Queries",
@@ -55,7 +56,8 @@ $(document).ready(function() {
pointBorderColor: "rgba(0,192,239,1)",
pointRadius: 0,
data: [],
pointHitRadius: 20
pointHitRadius: 20,
cubicInterpolationMode: 'monotone'
}
]
},