DmitrMakeev commited on
Commit
8cb8cfc
·
verified ·
1 Parent(s): 4239fba

Update online.html

Browse files
Files changed (1) hide show
  1. online.html +13 -7
online.html CHANGED
@@ -496,8 +496,9 @@ document.getElementById("but_sliv").addEventListener("click", function() {
496
  x: dataHistory.labels,
497
  y: dataHistory.ph,
498
  name: "pH",
499
- mode: "lines",
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" } },
@@ -507,19 +508,21 @@ document.getElementById("but_sliv").addEventListener("click", function() {
507
  x: dataHistory.labels,
508
  y: dataHistory.ec,
509
  name: "EC",
510
- mode: "lines",
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,
519
  y: dataHistory.tS,
520
  name: "Т. раствора",
521
- mode: "lines",
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" } },
@@ -529,8 +532,9 @@ document.getElementById("but_sliv").addEventListener("click", function() {
529
  x: dataHistory.labels,
530
  y: dataHistory.tA,
531
  name: "Т. воздуха",
532
- mode: "lines",
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" } },
@@ -540,8 +544,9 @@ document.getElementById("but_sliv").addEventListener("click", function() {
540
  x: dataHistory.labels,
541
  y: dataHistory.hDm,
542
  name: "Вл. воздуха",
543
- mode: "lines",
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" } },
@@ -551,8 +556,9 @@ document.getElementById("but_sliv").addEventListener("click", function() {
551
  x: dataHistory.labels,
552
  y: dataHistory.sVen,
553
  name: "Об. вентилятора",
554
- mode: "lines",
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" } },
 
496
  x: dataHistory.labels,
497
  y: dataHistory.ph,
498
  name: "pH",
499
+ mode: "lines+markers", // Линия с точками
500
  line: { color: "blue" },
501
+ marker: { size: 6 }, // Размер точек
502
  customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
503
  hovertemplate: "<b>pH: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
504
  hoverlabel: { bgcolor: "blue", font: { color: "white" } },
 
508
  x: dataHistory.labels,
509
  y: dataHistory.ec,
510
  name: "EC",
511
+ mode: "lines+markers", // Линия с точками
512
  line: { color: "green" },
513
+ marker: { size: 6 },
514
  customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
515
  hovertemplate: "<b>EC: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
516
  hoverlabel: { bgcolor: "green", font: { color: "white" } },
517
+ visible: "legendonly" // EC выключен
518
  },
519
  {
520
  x: dataHistory.labels,
521
  y: dataHistory.tS,
522
  name: "Т. раствора",
523
+ mode: "lines+markers", // Линия с точками
524
  line: { color: "red" },
525
+ marker: { size: 6 },
526
  customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
527
  hovertemplate: "<b>Т. раствора: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
528
  hoverlabel: { bgcolor: "red", font: { color: "white" } },
 
532
  x: dataHistory.labels,
533
  y: dataHistory.tA,
534
  name: "Т. воздуха",
535
+ mode: "lines+markers", // Линия с точками
536
  line: { color: "orange" },
537
+ marker: { size: 6 },
538
  customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
539
  hovertemplate: "<b>Т. воздуха: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
540
  hoverlabel: { bgcolor: "orange", font: { color: "white" } },
 
544
  x: dataHistory.labels,
545
  y: dataHistory.hDm,
546
  name: "Вл. воздуха",
547
+ mode: "lines+markers", // Линия с точками
548
  line: { color: "purple" },
549
+ marker: { size: 6 },
550
  customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
551
  hovertemplate: "<b>Вл. воздуха: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
552
  hoverlabel: { bgcolor: "purple", font: { color: "white" } },
 
556
  x: dataHistory.labels,
557
  y: dataHistory.sVen,
558
  name: "Об. вентилятора",
559
+ mode: "lines+markers", // Линия с точками
560
  line: { color: "brown" },
561
+ marker: { size: 6 },
562
  customdata: dataHistory.dates.map((date, i) => [date, dataHistory.times[i]]),
563
  hovertemplate: "<b>Об. вентилятора: %{y}</b><br>Дата: %{customdata[0]}<br>Время: %{customdata[1]}<extra></extra>",
564
  hoverlabel: { bgcolor: "brown", font: { color: "white" } },