Skip to content

Commit

Permalink
Fixes inverted scalar value (#8268)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed May 14, 2024
1 parent a07d16b commit e2b9fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_src/utilities/graph/dygraph-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2b9fc4

Please sign in to comment.