mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Skip last datapoint in main diagram
This commit is contained in:
@@ -156,6 +156,8 @@ function updateSummaryData(runOnce) {
|
||||
function updateQueriesOverTime() {
|
||||
$.getJSON("api.php?overTimeData", function(data) {
|
||||
// Add data for each hour that is available
|
||||
// remove last data point since it not representative
|
||||
data.ads_over_time.splice(-1,1);
|
||||
for (hour in data.ads_over_time) {
|
||||
// Add x-axis label
|
||||
timeLineChart.data.labels.push(hour + ":00");
|
||||
|
||||
Reference in New Issue
Block a user