From 5419ea45f62baac341b3f4dcac6dfdf9bcad0319 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 28 Feb 2005 14:24:14 +0000 Subject: [PATCH] Ajout modification des couleurs possible --- htdocs/telephonie/stats/graph/pie.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/stats/graph/pie.class.php b/htdocs/telephonie/stats/graph/pie.class.php index 48b0be39c7e..38ba57a49d6 100644 --- a/htdocs/telephonie/stats/graph/pie.class.php +++ b/htdocs/telephonie/stats/graph/pie.class.php @@ -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);