|
|
@@ -425,11 +425,11 @@ function displayChart(monitor, label, unit, charts) {
|
|
|
// console.log(charts);
|
|
|
|
|
|
if (type == "SIS" || type == "SID") {
|
|
|
- SIS_data["depth"] = [];
|
|
|
- SIS_data["warning1"] = [];
|
|
|
- SIS_data["warning2"] = [];
|
|
|
- SIS_data["action1"] = [];
|
|
|
- SIS_data["action2"] = [];
|
|
|
+ SIS_data["depth"] = [];
|
|
|
+ SIS_data["warning1"] = [];
|
|
|
+ SIS_data["warning2"] = [];
|
|
|
+ SIS_data["action1"] = [];
|
|
|
+ SIS_data["action2"] = [];
|
|
|
SIS_data["data"] = {};
|
|
|
|
|
|
charts.forEach(element => {
|
|
|
@@ -461,11 +461,23 @@ function displayChart(monitor, label, unit, charts) {
|
|
|
label: "警戒值+",
|
|
|
data: SIS_data["warning1"],
|
|
|
borderColor: "#FF0000",
|
|
|
+ borderDash: [5,5],
|
|
|
pointRadius: 0
|
|
|
}, {
|
|
|
label: "警戒值-",
|
|
|
data: SIS_data["warning2"],
|
|
|
borderColor: "#FF0000",
|
|
|
+ borderDash: [5,5],
|
|
|
+ pointRadius: 0
|
|
|
+ }, {
|
|
|
+ label: "行動值+",
|
|
|
+ data: SIS_data["action1"],
|
|
|
+ borderColor: "#FF0000",
|
|
|
+ pointRadius: 0
|
|
|
+ }, {
|
|
|
+ label: "行動值-",
|
|
|
+ data: SIS_data["action2"],
|
|
|
+ borderColor: "#FF0000",
|
|
|
pointRadius: 0
|
|
|
}];
|
|
|
|
|
|
@@ -473,7 +485,7 @@ function displayChart(monitor, label, unit, charts) {
|
|
|
datasets.push({
|
|
|
label: element,
|
|
|
data: SIS_data["data"][element],
|
|
|
- borderColor: "#3e95cd",
|
|
|
+ borderColor: randomColorBlue(),
|
|
|
pointRadius: 0
|
|
|
});
|
|
|
});
|
|
|
@@ -536,11 +548,23 @@ function displayChart(monitor, label, unit, charts) {
|
|
|
label: "警戒值+",
|
|
|
data: warning1,
|
|
|
borderColor: "#FF0000",
|
|
|
+ borderDash: [5,5],
|
|
|
pointRadius: 0
|
|
|
}, {
|
|
|
label: "警戒值-",
|
|
|
data: warning2,
|
|
|
borderColor: "#FF0000",
|
|
|
+ borderDash: [5,5],
|
|
|
+ pointRadius: 0
|
|
|
+ }, {
|
|
|
+ label: "行動值+",
|
|
|
+ data: action1,
|
|
|
+ borderColor: "#FF0000",
|
|
|
+ pointRadius: 0
|
|
|
+ }, {
|
|
|
+ label: "行動值-",
|
|
|
+ data: action2,
|
|
|
+ borderColor: "#FF0000",
|
|
|
pointRadius: 0
|
|
|
}];
|
|
|
|