diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index e2d6a24e13..ecd279d8d7 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -1946,6 +1946,11 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, $.extend(true, {}, options, { yaxis: {max: maxim_data + (maxim_data*0.5)}, })); + } else { + plot = $.plot($('#' + graph_id), data_base, + $.extend(true, {}, options, { + yaxis: {max: plot.getAxes().yaxis.max}, + })); } datas = add_threshold (data_base, threshold_data, plot.getAxes().yaxis.min, plot.getAxes().yaxis.max, yellow_threshold, red_threshold, extremes, red_up);