From 44a425e38a4424f9e08b7b8b790b34b73fdeec0a Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 20 Mar 2020 14:46:37 +0100 Subject: [PATCH] Test Graphe --- site/graphe.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/site/graphe.php b/site/graphe.php index 83f4fa4..f130e6b 100644 --- a/site/graphe.php +++ b/site/graphe.php @@ -4,8 +4,15 @@ require_once ('jpgraph/jpgraph_line.php'); require_once('accesBase.php'); $history = getHistory($_REQUEST['nom'], '', '', $_REQUEST['start'], $_REQUEST['end'], $_REQUEST['nombre']); -$datay = makeArray($history, "value"); -$dates = makeArray($history, "date"); +$y = makeArray($history, "value"); +$x = makeArray($history, "date"); +str_replace(" ", "\n", $datax); + +for(int i=0; iyaxis->HideTicks(false,false); $graph->xgrid->Show(); $graph->xgrid->SetLineStyle("solid"); -$graph->xaxis->SetTickLabels($dates); +$graph->xaxis->SetTickLabels($datax); $graph->xgrid->SetColor('#E3E3E3'); // Create the first line -- libgit2 0.21.2