diff --git a/scripts/js/charts.js b/scripts/js/charts.js index 860637c9..967b4bc2 100644 --- a/scripts/js/charts.js +++ b/scripts/js/charts.js @@ -99,6 +99,12 @@ globalThis.htmlLegendPlugin = { } else { // Encode the forward destination as it may contain an "#" character link.href = `queries?upstream=${encodeURIComponent(upstreamIPs[item.index])}`; + + // If server name and IP are different, replace the title tooltip + // including the upstream IP to the text + if (item.text !== upstreamIPs[item.index]) { + link.title = `List ${item.text} (${upstreamIPs[item.index]}) queries`; + } } } else { // no clickable links in other charts