diff --git a/site/graphe.php b/site/graphe.php index f6741fb..83f4fa4 100644 --- a/site/graphe.php +++ b/site/graphe.php @@ -5,6 +5,7 @@ require_once('accesBase.php'); $history = getHistory($_REQUEST['nom'], '', '', $_REQUEST['start'], $_REQUEST['end'], $_REQUEST['nombre']); $datay = makeArray($history, "value"); +$dates = makeArray($history, "date"); // Setup the graph $graph = new Graph(800,400); @@ -27,7 +28,7 @@ $graph->yaxis->HideTicks(false,false); $graph->xgrid->Show(); $graph->xgrid->SetLineStyle("solid"); -$graph->xaxis->SetTickLabels(array('A','B','C','D')); +$graph->xaxis->SetTickLabels($dates); $graph->xgrid->SetColor('#E3E3E3'); // Create the first line -- libgit2 0.21.2