Fixed a single error on module graphs TICKETS #3526

This commit is contained in:
fermin831 2016-04-06 10:30:59 +02:00
parent 9d28f99ae9
commit 902c5371f9
1 changed files with 3 additions and 3 deletions

View File

@ -1198,19 +1198,19 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
data: [[max_x, yellow_up]],
label: null,
color: warning,
bars: {show: true, align: "left", barWidth: yellow_up - red_threshold, lineWidth: 0, horizontal: true}
bars: {show: true, align: "left", barWidth: red_threshold - yellow_up, lineWidth: 0, horizontal: true}
});
extremes['warning_normal_fup_1'] = yellow_up;
extremes['warning_normal_fup_2'] = red_threshold;
threshold_data.push({ // barWidth will be correct on draw time
id: 'warning_up',
data: [[max_x, yellow_up]],
data: [[max_x, red_up]],
label: null,
color: warning,
bars: {show: true, align: "left", barWidth: 1, lineWidth: 0, horizontal: true}
});
extremes['warning_up'] = yellow_up;
extremes['warning_up'] = red_up;
} else {
// C: | -------- |
// W: |==· ···=======|