DmitrMakeev commited on
Commit
e31a055
·
verified ·
1 Parent(s): 5380887

Update plot_week.html

Browse files
Files changed (1) hide show
  1. plot_week.html +31 -8
plot_week.html CHANGED
@@ -113,13 +113,33 @@ body {
113
 
114
  {% if data %}
115
  <div class="container">
116
- <div class="graph-container"><div class="graph" id="ph_chart"></div></div>
117
- <div class="graph-container"><div class="graph" id="ec_chart"></div></div>
118
- <div class="graph-container"><div class="graph" id="pump_chart"></div></div>
119
- <div class="graph-container"><div class="graph" id="ts_chart"></div></div>
120
- <div class="graph-container"><div class="graph" id="ta_chart"></div></div>
121
- <div class="graph-container"><div class="graph" id="hdm_chart"></div></div>
122
- <div class="graph-container"><div class="graph" id="sven_chart"></div></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  </div>
124
 
125
  <script>
@@ -143,6 +163,7 @@ body {
143
  showlegend: false
144
  });
145
  }
 
146
  function updateCharts() {
147
  $.get("/plot_week?week=" + {{ week_number }}, function(data) {
148
  // Обновление графиков с новыми данными
@@ -192,7 +213,7 @@ body {
192
  });
193
  });
194
  }
195
-
196
  setInterval(updateCharts, 10000); // Обновление графиков каждые 10 секунд
197
  </script>
198
  {% else %}
@@ -232,5 +253,7 @@ body {
232
  window.location.href = targetUrl;
233
  });
234
  </script>
 
235
  </body>
 
236
  </html>
 
113
 
114
  {% if data %}
115
  <div class="container">
116
+ <div class="row">
117
+ <div class="col-md-4 graph-container">
118
+ <div class="graph" id="ph_chart"></div>
119
+ </div>
120
+ <div class="col-md-4 graph-container">
121
+ <div class="graph" id="ec_chart"></div>
122
+ </div>
123
+ <div class="col-md-4 graph-container">
124
+ <div class="graph" id="pump_chart"></div>
125
+ </div>
126
+ </div>
127
+ <div class="row">
128
+ <div class="col-md-4 graph-container">
129
+ <div class="graph" id="ts_chart"></div>
130
+ </div>
131
+ <div class="col-md-4 graph-container">
132
+ <div class="graph" id="ta_chart"></div>
133
+ </div>
134
+ <div class="col-md-4 graph-container">
135
+ <div class="graph" id="hdm_chart"></div>
136
+ </div>
137
+ </div>
138
+ <div class="row">
139
+ <div class="col-md-4 graph-container">
140
+ <div class="graph" id="sven_chart"></div>
141
+ </div>
142
+ </div>
143
  </div>
144
 
145
  <script>
 
163
  showlegend: false
164
  });
165
  }
166
+
167
  function updateCharts() {
168
  $.get("/plot_week?week=" + {{ week_number }}, function(data) {
169
  // Обновление графиков с новыми данными
 
213
  });
214
  });
215
  }
216
+
217
  setInterval(updateCharts, 10000); // Обновление графиков каждые 10 секунд
218
  </script>
219
  {% else %}
 
253
  window.location.href = targetUrl;
254
  });
255
  </script>
256
+
257
  </body>
258
+
259
  </html>