From aa5bec9103b49df0cca25b8a8f52ce3083fda9ae Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 8 Nov 2016 00:37:24 +0100 Subject: [PATCH] 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. --- js/pihole/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/pihole/index.js b/js/pihole/index.js index 8688b76b..508e227e 100644 --- a/js/pihole/index.js +++ b/js/pihole/index.js @@ -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' } ] },