mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed problems with thresholded in interactive graphs. Internal Ticket: #3777
This commit is contained in:
parent
0e53477fa7
commit
794275a13c
@ -2083,7 +2083,15 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||
yellow_threshold, red_threshold, extremes, red_up);
|
||||
thresholded = true;
|
||||
}
|
||||
|
||||
|
||||
var max_draw = plot.getAxes().yaxis.datamax;
|
||||
if (max_draw < red_threshold || max_draw < yellow_threshold) {
|
||||
var maxim_data = (red_threshold < yellow_threshold) ? yellow_threshold : red_threshold
|
||||
plot = $.plot($('#' + graph_id), data_base,
|
||||
$.extend(true, {}, options, {
|
||||
yaxis: {max: maxim_data},
|
||||
}));
|
||||
}
|
||||
plot.setData(datas);
|
||||
plot.draw();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user