diff --git a/modules/statistics/lib/Graph/GoogleCharts.php b/modules/statistics/lib/Graph/GoogleCharts.php index 9a1126188387d359513bcef798b0011ebc5c8057..613dddfc5aecf97bc5e60b8218beb00d5407628e 100644 --- a/modules/statistics/lib/Graph/GoogleCharts.php +++ b/modules/statistics/lib/Graph/GoogleCharts.php @@ -8,15 +8,23 @@ */ class sspmod_statistics_Graph_GoogleCharts { - private $x, $y; + /** + * @var integer + */ + private $x; + + /** + * @var integer + */ + private $y; /** * Constructor. * * Takes dimension of graph as parameters. X and Y. * - * @param $x X dimension. Default 800. - * @param $y Y dimension. Default 350. + * @param integer $x X dimension. Default 800. + * @param integer $y Y dimension. Default 350. */ public function __construct($x = 800, $y = 350) { @@ -58,24 +66,6 @@ class sspmod_statistics_Graph_GoogleCharts return($chardata); } - /** - * Return colors between multiple graphs... - */ - private function getFillArea($datasets) - { - if (count($datasets) < 2) { - return ''; - } - - $colors = array('eeeeee', 'cccccc', 'aaaaaa', '99eecc'); - $num = count($datasets) ; - $colstr = array(); - for ($i = 0; $i < $num; $i++) { - $colstr[] = 'b' . ',' . $colors[$i] . ',' . ($i) . ',' . ($i+1) . ',0'; - } - return '&chm=' . join('|', $colstr); - } - /** * Generate a Google Charts URL which points to a generated image. * More documentation on Google Charts here: