Commit ab15bd7479d8320339db8739e9d5ac422069b0c1
1 parent
f4782e65
Test Graphe
Showing
3 changed files
with
15 additions
and
2 deletions
Show diff stats
site/accesBase.php
site/graphe.php
1 | <?php // content="text/plain; charset=utf-8" | 1 | <?php // content="text/plain; charset=utf-8" |
2 | require_once ('jpgraph/jpgraph.php'); | 2 | require_once ('jpgraph/jpgraph.php'); |
3 | require_once ('jpgraph/jpgraph_line.php'); | 3 | require_once ('jpgraph/jpgraph_line.php'); |
4 | +require_once('accesBase.php'); | ||
4 | 5 | ||
5 | -$datay1 = array(20,15,23,15); | 6 | +$history = getHistory('TempĂȘte', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); |
7 | +$datay1 = makeArray($history, "value"); | ||
8 | + | ||
9 | +//$datay1 = array(20,15,23,15); | ||
6 | $datay2 = array(12,9,42,8); | 10 | $datay2 = array(12,9,42,8); |
7 | $datay3 = array(5,17,32,24); | 11 | $datay3 = array(5,17,32,24); |
8 | 12 |
site/graphique.php
@@ -18,7 +18,7 @@ session_start(); | @@ -18,7 +18,7 @@ session_start(); | ||
18 | <div class="row"> | 18 | <div class="row"> |
19 | <div class="col-8 col-md-8 offset-md-2 offset-2"> | 19 | <div class="col-8 col-md-8 offset-md-2 offset-2"> |
20 | <br/> | 20 | <br/> |
21 | - <h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-bars"></i> Graphe du capteur</h1> | 21 | + <h1 style="margin-bottom:20px; margin-top:30px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-chart-line"></i> Graphe du capteur</h1> |
22 | <br/> | 22 | <br/> |
23 | <img src="graphe.php" alt="graphe"> | 23 | <img src="graphe.php" alt="graphe"> |
24 | </div> | 24 | </div> |