From 2c33e6c9cf194a351940b64b302e93adf83d6d14 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 18 Feb 2005 12:42:26 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20la=20date=20de=20g=E9n=E9ration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/graph/baracc.class.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/htdocs/telephonie/stats/graph/baracc.class.php b/htdocs/telephonie/stats/graph/baracc.class.php index 99f78a4ffb5..f198624dee3 100644 --- a/htdocs/telephonie/stats/graph/baracc.class.php +++ b/htdocs/telephonie/stats/graph/baracc.class.php @@ -54,7 +54,9 @@ class GraphBarAcc extends DolibarrGraph { $graph->SetFrame($this->showframe); - $graph->img->SetMargin(40,20,20,40); + // Margins : left, right, top, bottom + + $graph->img->SetMargin(40,20,20,30); $b2plot = new BarPlot($datas); @@ -63,12 +65,12 @@ class GraphBarAcc extends DolibarrGraph { $graph->xaxis->scale->SetGrace(20); $LabelAngle = 45; - if ($this->LabelAngle <> $LabelAngle && $this->LabelAngle > 0) + if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0) $LabelAngle = $this->LabelAngle; $graph->xaxis->SetLabelAngle($LabelAngle); - $graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,8); + $graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7); $b1plot = new BarPlot($moys); @@ -90,6 +92,8 @@ class GraphBarAcc extends DolibarrGraph { $graph->xaxis->title->SetFont(FF_FONT1); $graph->xaxis->SetTickLabels($labels); + + $graph->xaxis->title->Set("généré le ".strftime("%d/%b/%y %H:%M:%S", time())); // Display the graph