Fixes timeseries info issues and added new charts (#8144)

This commit is contained in:
Matteo Biscosi 2024-01-04 11:46:52 +00:00
parent a22d2a94f5
commit 56eba7e685
3 changed files with 99 additions and 55 deletions

View file

@ -176,7 +176,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