From b8d02780d3deaa414dd4944b1867a56d164442f7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 18 Feb 2005 13:04:05 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20du=20format=20de=20l=E9gende=20d?= =?UTF-8?q?e=20l'axe=20des=20X?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/stats/graph/bar.class.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/htdocs/telephonie/stats/graph/bar.class.php b/htdocs/telephonie/stats/graph/bar.class.php index a4f5270f8da..6316ae329ab 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,30); + $graph->img->SetMargin(40,20,20,35); if ($this->type == 'LinePlot') { @@ -76,23 +76,22 @@ class GraphBar extends DolibarrGraph { if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0) $LabelAngle = $this->LabelAngle; - $graph->xaxis->SetLabelAngle($LabelAngle); - - $graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,8); - - $graph->Add($b2plot); - + if ($this->LabelAngle > 0) + { + $graph->xaxis->SetLabelAngle($LabelAngle); + $graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7); + } + $graph->title->Set($this->titre); $graph->title->SetFont(FF_VERDANA,FS_NORMAL); - $graph->yaxis->title->SetFont(FF_FONT1); - $graph->xaxis->title->SetFont(FF_FONT1); - - $graph->xaxis->SetTickLabels($labels); + $graph->xaxis->SetTickLabels($labels); $graph->xaxis->title->Set(strftime("%d/%m/%y %H:%M:%S", time())); + $graph->Add($b2plot); + // Display the graph $graph->img->SetImgFormat("png");