From 594ae01e1f881cada77b06c6fbac01674f6acb16 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 20 Mar 2020 14:29:13 +0100 Subject: [PATCH] Test Graphe --- site/graphe.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/site/graphe.php b/site/graphe.php index 703499d..d67d634 100644 --- a/site/graphe.php +++ b/site/graphe.php @@ -6,11 +6,11 @@ require_once('accesBase.php'); $history1 = getHistory($_REQUEST['nom'], '', '', $_REQUEST['start'], $_REQUEST['end'], $_REQUEST['nombre']); $datay1 = makeArray($history1, "value"); -$history2 = getHistory('Atmos', '', '', '2020-01-02 00:00:00', '2020-04-05 23:59:59', 4); -$datay2 = makeArray($history2, "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"); +//$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); @@ -24,7 +24,7 @@ $theme_class=new UniversalTheme; $graph->SetTheme($theme_class); $graph->img->SetAntiAliasing(false); -$graph->title->Set('Filled Y-grid'); +$graph->title->Set('Graphique'); $graph->SetBox(false); $graph->SetMargin(40,20,36,63); @@ -47,16 +47,16 @@ $p1->SetColor("#6495ED"); $p1->SetLegend('Line 1'); // Create the second line -$p2 = new LinePlot($datay2); -$graph->Add($p2); -$p2->SetColor("#B22222"); -$p2->SetLegend('Line 2'); +//$p2 = new LinePlot($datay2); +//$graph->Add($p2); +//$p2->SetColor("#B22222"); +//$p2->SetLegend('Line 2'); // Create the third line -$p3 = new LinePlot($datay3); -$graph->Add($p3); -$p3->SetColor("#FF1493"); -$p3->SetLegend('Line 3'); +//$p3 = new LinePlot($datay3); +//$graph->Add($p3); +//$p3->SetColor("#FF1493"); +//$p3->SetLegend('Line 3'); $graph->legend->SetFrameWeight(1); -- libgit2 0.21.2