Ajout legende sur l'axe des Y
This commit is contained in:
parent
d4cbfd2db8
commit
876760dd7d
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user