X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/098a79f0819ebb89b7d48df4a6b154af4560f68e..9a23a8c0a51b7ec38a96f525484134f3cb85dc7e:/WEB-INF/lib/PieChartEx.class.php diff --git a/WEB-INF/lib/PieChartEx.class.php b/WEB-INF/lib/PieChartEx.class.php new file mode 100644 index 00000000..6f482b55 --- /dev/null +++ b/WEB-INF/lib/PieChartEx.class.php @@ -0,0 +1,49 @@ +computePercent(); + + if ($hideLabel) { + $this->plot->setGraphPadding(new Padding(0)); + $this->plot->setTitleHeight(0); + } + $this->computeLayout(!$hideLabel); + + $this->createImage(); + + if (!isset($options['hideLogo']) || $options['hideLogo'] == false) + $this->plot->printLogo(); + if (!isset($options['hideTitle']) || $options['hideTitle'] == false) + $this->plot->printTitle(); + if (!isset($options['hidePie']) || $options['hidePie'] == false) + $this->printPie(); + if (!$hideLabel) + $this->printLabel(); + + /*if(isset($options['fileName'])) + imagepng($this->img, $options['fileName']); + else + imagepng($this->img); */ + $this->plot->render($options['fileName']); + } + } +?>