From a210f5ca2d8a4039a6b73e6fb96dec6576d57b26 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 18 Feb 2005 12:41:41 +0000 Subject: [PATCH] =?UTF-8?q?Ajoute=20la=20date=20=E0=20laquelle=20a=20=E9t?= =?UTF-8?q?=E9=20g=E9n=E9r=E9=20le=20graph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/graph/bar.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/telephonie/stats/graph/bar.class.php b/htdocs/telephonie/stats/graph/bar.class.php index 72341b3d434..a4f5270f8da 100644 --- a/htdocs/telephonie/stats/graph/bar.class.php +++ b/htdocs/telephonie/stats/graph/bar.class.php @@ -56,7 +56,7 @@ class GraphBar extends DolibarrGraph { $graph->SetFrame($this->showframe); - $graph->img->SetMargin(40,20,20,40); + $graph->img->SetMargin(40,20,20,30); if ($this->type == 'LinePlot') { @@ -72,7 +72,8 @@ class GraphBar 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); @@ -85,11 +86,13 @@ class GraphBar extends DolibarrGraph { $graph->title->SetFont(FF_VERDANA,FS_NORMAL); - $graph->yaxis->title->SetFont(FF_FONT2); + $graph->yaxis->title->SetFont(FF_FONT1); $graph->xaxis->title->SetFont(FF_FONT1); $graph->xaxis->SetTickLabels($labels); + $graph->xaxis->title->Set(strftime("%d/%m/%y %H:%M:%S", time())); + // Display the graph $graph->img->SetImgFormat("png");