Commit 399273b9fe3ee3115d8750c0cc9c9dd263f42ea8
1 parent
ab15bd74
Test Graphe
Showing
1 changed file
with
10 additions
and
4 deletions
Show diff stats
site/graphe.php
... | ... | @@ -3,12 +3,18 @@ require_once ('jpgraph/jpgraph.php'); |
3 | 3 | require_once ('jpgraph/jpgraph_line.php'); |
4 | 4 | require_once('accesBase.php'); |
5 | 5 | |
6 | -$history = getHistory('TempĂȘte', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); | |
7 | -$datay1 = makeArray($history, "value"); | |
6 | +$history1 = getHistory('Solaris', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); | |
7 | +$datay1 = makeArray($history1, "value"); | |
8 | + | |
9 | +$history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); | |
10 | +$datay2 = makeArray($history2, "value"); | |
11 | + | |
12 | +$history3 = getHistory('Fusion', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); | |
13 | +$datay3 = makeArray($history3, "value"); | |
8 | 14 | |
9 | 15 | //$datay1 = array(20,15,23,15); |
10 | -$datay2 = array(12,9,42,8); | |
11 | -$datay3 = array(5,17,32,24); | |
16 | +//$datay2 = array(12,9,42,8); | |
17 | +//$datay3 = array(5,17,32,24); | |
12 | 18 | |
13 | 19 | // Setup the graph |
14 | 20 | $graph = new Graph(800,400); |
... | ... |