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->barcolor = "green";
|
||||||
$this->height = 240;
|
$this->height = 240;
|
||||||
$this->width = 360;
|
$this->width = 360;
|
||||||
|
$this->yAxisLegend = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
Function GraphDraw($file, $datas, $labels)
|
Function GraphDraw($file, $datas, $labels)
|
||||||
@ -63,6 +64,12 @@ class DolibarrSimpleBar {
|
|||||||
$plot->xAxis->setLabelText($labels);
|
$plot->xAxis->setLabelText($labels);
|
||||||
$plot->xAxis->label->setFont(new Tuffy(7));
|
$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->add($plot);
|
||||||
$graph->draw($file);
|
$graph->draw($file);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user