Fixes inverted scalar value (#8268)

This commit is contained in:
Matteo Biscosi 2024-05-14 06:42:13 -04:00
parent a07d16b4ec
commit e2b9fc4f6b

View file

@ -180,7 +180,7 @@ function splitBoundSerie(series, timeserie_info) {
const ts_id = getSerieId(ts_info);
const serie = ts_info.data || []; /* Safety check */
const metadata = timeserie_info.metric.timeseries[ts_id];
const scalar = (metadata?.invert_direction === true) ? 1 : -1;
const scalar = (metadata?.invert_direction === true) ? -1 : 1;
/* Just add the name, properties, colors, ecc, for the
* "main" timeserie and not for the bounds ones