diff --git a/http_src/utilities/graph/dygraph-format.js b/http_src/utilities/graph/dygraph-format.js index 934b1cbd85..0905003f29 100644 --- a/http_src/utilities/graph/dygraph-format.js +++ b/http_src/utilities/graph/dygraph-format.js @@ -261,12 +261,16 @@ function formatStandardSerie(timeserie_info, timeserie_options, config, tsCompar const max_value = timeserie_info.metric.max_value || null; const min_value = timeserie_info.metric.min_value || null; const past_serie = timeserie_options.additional_series; + let disable_past_ts = false; config.value_range = [min_value, max_value]; config.plotter = getPlotter(chart_type); if (!config.stacked) { config.stacked = timeserie_info.metric.draw_stacked || false; } + if (timeserie_info.metric.disable_default_ago_ts) { + disable_past_ts = timeserie_info.metric.disable_default_ago_ts || true + } series.forEach((ts_info, j) => { const serie = ts_info.data || []; /* Safety check */ @@ -300,7 +304,7 @@ function formatStandardSerie(timeserie_info, timeserie_options, config, tsCompar if (extra_timeseries?.perc_95 == true) { addNewSerie(perc_name, "point", { color: constant_serie_colors["perc_95"], palette: 1 }, config) } - if (extra_timeseries?.past == true) { + if (extra_timeseries?.past == true && !disable_past_ts) { addNewSerie(past_name, "dash", { color: constant_serie_colors["past"], palette: 1 }, config) }