Ajout legende sur l'axe des Y

This commit is contained in:
Rodolphe Quiedeville 2007-07-12 09:40:54 +00:00
parent d4cbfd2db8
commit 876760dd7d

View File

@ -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);
}