From 6c4437ed231a6c354f20a7ebe7df48122d5cec0e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 18 Oct 2005 09:46:10 +0000 Subject: [PATCH] Modif legend --- htdocs/telephonie/script/graph-statistiques-fournisseurs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/script/graph-statistiques-fournisseurs.php b/htdocs/telephonie/script/graph-statistiques-fournisseurs.php index 42c39f45459..a9e7e81e41a 100644 --- a/htdocs/telephonie/script/graph-statistiques-fournisseurs.php +++ b/htdocs/telephonie/script/graph-statistiques-fournisseurs.php @@ -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);