Commit 7d6607013b1208934802f0a814e2fc5a4812c44c

Authored by Guillaume
1 parent 8445b765

Test Graphe

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