From b8589513c18564f11f014704a1b939f149b4511e Mon Sep 17 00:00:00 2001 From: Tom Niget Date: Sun, 3 Aug 2025 18:42:44 +0200 Subject: [PATCH] Remove duplicate "Total" entry in graph tooltips (#2534) --- 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; });