summaryrefslogtreecommitdiffstats
path: root/src/charts/pie.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-14 13:12:24 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-14 13:12:24 +0000
commitaa0997b7670abfc7884f3f3406a56c25b675634b (patch)
tree59ef8a7af05068bc371cf962212ac17dd8f63f11 /src/charts/pie.php
parent815444c46accf9b5d6868daef2c5070bbf186476 (diff)
downloadzetacomponents-graph-aa0997b7670abfc7884f3f3406a56c25b675634b.zip
zetacomponents-graph-aa0997b7670abfc7884f3f3406a56c25b675634b.tar.gz
- Disable rendering of selected chart elements
Diffstat (limited to 'src/charts/pie.php')
-rw-r--r--src/charts/pie.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/charts/pie.php b/src/charts/pie.php
index 8645c08..67a628f 100644
--- a/src/charts/pie.php
+++ b/src/charts/pie.php
@@ -212,6 +212,12 @@ class ezcGraphPieChart extends ezcGraphChart
// Render subelements
foreach ( $this->elements as $name => $element )
{
+ // Skip element, if it should not get rendered
+ if ( $this->renderElement[$name] === false )
+ {
+ continue;
+ }
+
$this->driver->options->font = $element->font;
$boundings = $element->render( $this->renderer, $boundings );
}
OpenPOWER on IntegriCloud