mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Prevent overshoots in the graphs caused by cubic interpolation (just like we do it already for the main graph)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -229,6 +229,7 @@ function updateForwardedOverTime() {
|
||||
forwardDestinationChart.data.datasets[0].pointHitRadius = 5;
|
||||
forwardDestinationChart.data.datasets[0].pointHoverRadius = 5;
|
||||
forwardDestinationChart.data.datasets[0].label = labels[0];
|
||||
forwardDestinationChart.data.datasets[0].cubicInterpolationMode = "monotone";
|
||||
|
||||
for (i = forwardDestinationChart.data.datasets.length; i < plotdata[0].length; i++)
|
||||
{
|
||||
@@ -314,7 +315,7 @@ function updateClientsOverTime() {
|
||||
|
||||
for (i = clientsChart.data.datasets.length; i < plotdata[0].length; i++)
|
||||
{
|
||||
clientsChart.data.datasets.push({data: [], backgroundColor: colors[i], pointRadius: 0, pointHitRadius: 5, pointHoverRadius: 5, label: labels[i]});
|
||||
clientsChart.data.datasets.push({data: [], backgroundColor: colors[i], pointRadius: 0, pointHitRadius: 5, pointHoverRadius: 5, label: labels[i], cubicInterpolationMode: "monotone" });
|
||||
}
|
||||
|
||||
// Add data for each dataset that is available
|
||||
@@ -841,14 +842,16 @@ $(document).ready(function() {
|
||||
pointRadius: 0,
|
||||
pointHitRadius: 5,
|
||||
pointHoverRadius: 5,
|
||||
data: []
|
||||
data: [],
|
||||
cubicInterpolationMode: "monotone"
|
||||
},
|
||||
{
|
||||
label: "AAAA: IPv6 queries",
|
||||
pointRadius: 0,
|
||||
pointHitRadius: 5,
|
||||
pointHoverRadius: 5,
|
||||
data: []
|
||||
data: [],
|
||||
cubicInterpolationMode: "monotone"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user