diff --git a/htdocs/bargraph.class.php b/htdocs/bargraph.class.php index c41e73063ec..65dd8c150e0 100644 --- a/htdocs/bargraph.class.php +++ b/htdocs/bargraph.class.php @@ -1,5 +1,5 @@ +/* Copyright (c) 2003-2004 Rodolphe Quiedeville * Copyright (c) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -48,13 +48,21 @@ class BarGraph extends Graph $this->data = $data; include_once(DOL_DOCUMENT_ROOT."/includes/phplot/phplot.php"); - + $this->bgcolor = array(235,235,224); //$this->bgcolor = array(235,235,200); $this->bordercolor = array(235,235,224); $this->datacolor = array(array(204,204,179), array(187,187,136), array(235,235,224)); + + + $color_file = DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/graph-color.php"; + if (is_readable($color_file)) + { + include($color_file); + $this->bgcolor = $theme_bgcolor; + } $this->precision_y = 0;