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