Graph: another tooltip fix (#21251)

This commit is contained in:
Torkel Ödegaard 2019-12-25 08:15:31 +01:00 committed by GitHub
parent d0360de8f1
commit 8477104925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,8 +256,8 @@ export default function GraphTooltip(this: any, elem: any, dashboard: any, scope
}
series = seriesList[hoverInfo.index];
value = sanitize(series.formatValue(hoverInfo.value));
value = series.formatValue(hoverInfo.value);
const color = sanitize(hoverInfo.color);
const label = sanitize(hoverInfo.label);
@ -282,8 +282,7 @@ export default function GraphTooltip(this: any, elem: any, dashboard: any, scope
value = item.datapoint[1];
}
value = series.formatValue(sanitize(value));
value = sanitize(series.formatValue(value));
absoluteTime = dashboard.formatDate(item.datapoint[0], tooltipFormat);
group += '<div class="graph-tooltip-value">' + value + '</div>';