Fixed a single error on module graphs TICKETS #3526
This commit is contained in:
parent
9d28f99ae9
commit
902c5371f9
|
@ -1198,19 +1198,19 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||||
data: [[max_x, yellow_up]],
|
data: [[max_x, yellow_up]],
|
||||||
label: null,
|
label: null,
|
||||||
color: warning,
|
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_1'] = yellow_up;
|
||||||
extremes['warning_normal_fup_2'] = red_threshold;
|
extremes['warning_normal_fup_2'] = red_threshold;
|
||||||
|
|
||||||
threshold_data.push({ // barWidth will be correct on draw time
|
threshold_data.push({ // barWidth will be correct on draw time
|
||||||
id: 'warning_up',
|
id: 'warning_up',
|
||||||
data: [[max_x, yellow_up]],
|
data: [[max_x, red_up]],
|
||||||
label: null,
|
label: null,
|
||||||
color: warning,
|
color: warning,
|
||||||
bars: {show: true, align: "left", barWidth: 1, lineWidth: 0, horizontal: true}
|
bars: {show: true, align: "left", barWidth: 1, lineWidth: 0, horizontal: true}
|
||||||
});
|
});
|
||||||
extremes['warning_up'] = yellow_up;
|
extremes['warning_up'] = red_up;
|
||||||
} else {
|
} else {
|
||||||
// C: | -------- |
|
// C: | -------- |
|
||||||
// W: |==· ···=======|
|
// W: |==· ···=======|
|
||||||
|
|
Loading…
Reference in New Issue