Commit 7d6607013b1208934802f0a814e2fc5a4812c44c
1 parent
8445b765
Test Graphe
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
site/graphe.php
... | ... | @@ -5,6 +5,7 @@ require_once('accesBase.php'); |
5 | 5 | |
6 | 6 | $history = getHistory($_REQUEST['nom'], '', '', $_REQUEST['start'], $_REQUEST['end'], $_REQUEST['nombre']); |
7 | 7 | $datay = makeArray($history, "value"); |
8 | +$dates = makeArray($history, "date"); | |
8 | 9 | |
9 | 10 | // Setup the graph |
10 | 11 | $graph = new Graph(800,400); |
... | ... | @@ -27,7 +28,7 @@ $graph->yaxis->HideTicks(false,false); |
27 | 28 | |
28 | 29 | $graph->xgrid->Show(); |
29 | 30 | $graph->xgrid->SetLineStyle("solid"); |
30 | -$graph->xaxis->SetTickLabels(array('A','B','C','D')); | |
31 | +$graph->xaxis->SetTickLabels($dates); | |
31 | 32 | $graph->xgrid->SetColor('#E3E3E3'); |
32 | 33 | |
33 | 34 | // Create the first line | ... | ... |