mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Removed ago timeseries from usage chart
This commit is contained in:
parent
09300bad95
commit
e817dbe76f
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue