mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
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:
+4
-2
@@ -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'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user