Spaces:
Sleeping
Sleeping
Update online.html
Browse files- online.html +12 -6
online.html
CHANGED
|
@@ -500,7 +500,8 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 500 |
line: { color: "blue" },
|
| 501 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 502 |
hovertemplate: "<b>pH: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 503 |
-
hoverlabel: { bgcolor: "blue", font: { color: "white" } }
|
|
|
|
| 504 |
},
|
| 505 |
{
|
| 506 |
x: dataHistory.labels,
|
|
@@ -510,7 +511,8 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 510 |
line: { color: "green" },
|
| 511 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 512 |
hovertemplate: "<b>EC: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 513 |
-
hoverlabel: { bgcolor: "green", font: { color: "white" } }
|
|
|
|
| 514 |
},
|
| 515 |
{
|
| 516 |
x: dataHistory.labels,
|
|
@@ -520,7 +522,8 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 520 |
line: { color: "red" },
|
| 521 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 522 |
hovertemplate: "<b>Т. раствора: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 523 |
-
hoverlabel: { bgcolor: "red", font: { color: "white" } }
|
|
|
|
| 524 |
},
|
| 525 |
{
|
| 526 |
x: dataHistory.labels,
|
|
@@ -530,7 +533,8 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 530 |
line: { color: "orange" },
|
| 531 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 532 |
hovertemplate: "<b>Т. воздуха: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 533 |
-
hoverlabel: { bgcolor: "orange", font: { color: "white" } }
|
|
|
|
| 534 |
},
|
| 535 |
{
|
| 536 |
x: dataHistory.labels,
|
|
@@ -540,7 +544,8 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 540 |
line: { color: "purple" },
|
| 541 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 542 |
hovertemplate: "<b>Вл. воздуха: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 543 |
-
hoverlabel: { bgcolor: "purple", font: { color: "white" } }
|
|
|
|
| 544 |
},
|
| 545 |
{
|
| 546 |
x: dataHistory.labels,
|
|
@@ -550,7 +555,8 @@ document.getElementById("but_sliv").addEventListener("click", function() {
|
|
| 550 |
line: { color: "brown" },
|
| 551 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 552 |
hovertemplate: "<b>Об. вентилятора: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 553 |
-
hoverlabel: { bgcolor: "brown", font: { color: "white" } }
|
|
|
|
| 554 |
}
|
| 555 |
];
|
| 556 |
|
|
|
|
| 500 |
line: { color: "blue" },
|
| 501 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 502 |
hovertemplate: "<b>pH: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 503 |
+
hoverlabel: { bgcolor: "blue", font: { color: "white" } },
|
| 504 |
+
visible: true // pH активен по умолчанию
|
| 505 |
},
|
| 506 |
{
|
| 507 |
x: dataHistory.labels,
|
|
|
|
| 511 |
line: { color: "green" },
|
| 512 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 513 |
hovertemplate: "<b>EC: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 514 |
+
hoverlabel: { bgcolor: "green", font: { color: "white" } },
|
| 515 |
+
visible: "legendonly" // EC выключен, но в легенде
|
| 516 |
},
|
| 517 |
{
|
| 518 |
x: dataHistory.labels,
|
|
|
|
| 522 |
line: { color: "red" },
|
| 523 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 524 |
hovertemplate: "<b>Т. раствора: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 525 |
+
hoverlabel: { bgcolor: "red", font: { color: "white" } },
|
| 526 |
+
visible: "legendonly" // Т. раствора выключен
|
| 527 |
},
|
| 528 |
{
|
| 529 |
x: dataHistory.labels,
|
|
|
|
| 533 |
line: { color: "orange" },
|
| 534 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 535 |
hovertemplate: "<b>Т. воздуха: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 536 |
+
hoverlabel: { bgcolor: "orange", font: { color: "white" } },
|
| 537 |
+
visible: "legendonly" // Т. воздуха выключен
|
| 538 |
},
|
| 539 |
{
|
| 540 |
x: dataHistory.labels,
|
|
|
|
| 544 |
line: { color: "purple" },
|
| 545 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 546 |
hovertemplate: "<b>Вл. воздуха: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 547 |
+
hoverlabel: { bgcolor: "purple", font: { color: "white" } },
|
| 548 |
+
visible: "legendonly" // Вл. воздуха выключен
|
| 549 |
},
|
| 550 |
{
|
| 551 |
x: dataHistory.labels,
|
|
|
|
| 555 |
line: { color: "brown" },
|
| 556 |
customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
|
| 557 |
hovertemplate: "<b>Об. вентилятора: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
|
| 558 |
+
hoverlabel: { bgcolor: "brown", font: { color: "white" } },
|
| 559 |
+
visible: "legendonly" // Об. вентилятора выключен
|
| 560 |
}
|
| 561 |
];
|
| 562 |
|