* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Chart\Inline; use Icinga\Chart\PieChart as PieChartRenderer; /** * Draw an inline pie-chart directly from the available request parameters. */ class PieChart extends Inline { public function render() { $pie = new PieChartRenderer(); $pie->drawPie(array( 'data' => $this->data, 'colors' => $this->colors, 'labels' => $this->labels )); $pie->setWidth($this->width)->setHeight($this->height); echo $pie->render(); } }