From 876760dd7d8e0f7978700f1a3a949bc6553fc73d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 12 Jul 2007 09:40:54 +0000 Subject: [PATCH] Ajout legende sur l'axe des Y --- htdocs/telephonie/stats/graph/SimpleBar.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/telephonie/stats/graph/SimpleBar.class.php b/htdocs/telephonie/stats/graph/SimpleBar.class.php index a01151f4f84..4897c822542 100644 --- a/htdocs/telephonie/stats/graph/SimpleBar.class.php +++ b/htdocs/telephonie/stats/graph/SimpleBar.class.php @@ -30,6 +30,7 @@ class DolibarrSimpleBar { $this->barcolor = "green"; $this->height = 240; $this->width = 360; + $this->yAxisLegend = ''; } Function GraphDraw($file, $datas, $labels) @@ -63,6 +64,12 @@ class DolibarrSimpleBar { $plot->xAxis->setLabelText($labels); $plot->xAxis->label->setFont(new Tuffy(7)); + if ($this->yAxisLegend) + { + $plot->yAxis->title->set($this->yAxisLegend); + $plot->yAxis->title->setFont(new Tuffy(7)); + } + $graph->add($plot); $graph->draw($file); }