Ajout modification des couleurs possible

This commit is contained in:
Rodolphe Quiedeville 2005-02-28 14:24:14 +00:00
parent d99c000e49
commit 5419ea45f6

View File

@ -61,7 +61,11 @@ class GraphPie extends DolibarrGraph {
$pieplot->SetFont(FF_FONT1,FS_BOLD);
$pieplot->SetFontColor("darkred");
if (is_array($this->colors))
{
$pieplot->SetSliceColors($this->colors);
}
// Size of pie in fraction of the width of the graph
$pieplot->SetSize(0.38);