From d447c5dca66549088ce2490ee279bbc4bea71316 Mon Sep 17 00:00:00 2001 From: Tom Niget Date: Tue, 15 Apr 2025 15:40:00 +0200 Subject: [PATCH] Remove duplicate "Total" entry in graph tooltips --- data/interfaces/default/graphs.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/interfaces/default/graphs.html b/data/interfaces/default/graphs.html index 006d7ee9..7201c35f 100644 --- a/data/interfaces/default/graphs.html +++ b/data/interfaces/default/graphs.html @@ -760,6 +760,7 @@ if (this.points.length > 1) { var total = 0; $.each(this.points, function(i, point) { + if (point.series.name === 'Total') return; s += '
'+point.series.name+': '+point.y; total += point.y; }); @@ -786,6 +787,7 @@ if (this.points.length > 1) { var total = 0; $.each(this.points, function(i, point) { + if (point.series.name === 'Total') return; s += '
'+point.series.name+': '+moment.duration(point.y, 'hours').format('D [days] H [hrs] m [mins]'); total += point.y; });