Fixes past timeseries not correctly formatted

This commit is contained in:
Matteo Biscosi 2025-10-29 09:35:55 +01:00
parent 759530df95
commit b2b61e9452
4 changed files with 4 additions and 5 deletions

View file

@ -97,7 +97,7 @@ function getDefaultLegendFormatter(options) {
// Entries
const seriesHTML = data.series.filter(s => s.isVisible && s.yHTML).map(s => {
if (!s.isVisible) return "";
if (!isNaN(s.y) && !s.labelHTML.includes("Ago")) {
if (!isNaN(s.y) && !s.labelHTML.includes(i18n('details.ago'))) {
// Skip e.g. 30 min Ago series from the total
setTotal = true;
total = total + Math.abs(s.y)