Modif legend

This commit is contained in:
Rodolphe Quiedeville 2005-10-18 09:46:10 +00:00
parent 680cc01fbd
commit 6c4437ed23

View File

@ -52,9 +52,11 @@ $resql = $db->query($sql);
if ($resql)
{
$Tdate = array();
$Tlegends = array();
while ($row = $db->fetch_row($resql))
{
array_push($Tdate, $row[0]);
array_push($Tlegends, substr($row[0],0,2));
}
}
@ -138,7 +140,7 @@ foreach($graphs as $graph)
$ObjectGraph->Add($gbplot);
$ObjectGraph->title->Set("Nombre de minutes ".$titres[$graph]." par fournisseurs (en milliers)");
$ObjectGraph->xaxis->SetTickLabels($Tdate);
$ObjectGraph->xaxis->SetTickLabels($Tlegends);
$ObjectGraph->img->SetImgFormat("png");
$ObjectGraph->Stroke($file);