From 399273b9fe3ee3115d8750c0cc9c9dd263f42ea8 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 20 Mar 2020 12:33:59 +0100 Subject: [PATCH] Test Graphe --- site/graphe.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/site/graphe.php b/site/graphe.php index 1b03b6f..bf29787 100644 --- a/site/graphe.php +++ b/site/graphe.php @@ -3,12 +3,18 @@ require_once ('jpgraph/jpgraph.php'); require_once ('jpgraph/jpgraph_line.php'); require_once('accesBase.php'); -$history = getHistory('TempĂȘte', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); -$datay1 = makeArray($history, "value"); +$history1 = getHistory('Solaris', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); +$datay1 = makeArray($history1, "value"); + +$history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); +$datay2 = makeArray($history2, "value"); + +$history3 = getHistory('Fusion', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); +$datay3 = makeArray($history3, "value"); //$datay1 = array(20,15,23,15); -$datay2 = array(12,9,42,8); -$datay3 = array(5,17,32,24); +//$datay2 = array(12,9,42,8); +//$datay3 = array(5,17,32,24); // Setup the graph $graph = new Graph(800,400); -- libgit2 0.21.2