diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-12 12:44:10 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-12 12:44:10 +0000 |
commit | ec26fc5562817f7da9c9f092727cce1042f63e2c (patch) | |
tree | f59fc33f74674fa2e5c92fc008bf779adae29b62 /src/charts/pie.php | |
parent | 860aac17b96f6a8335b14bd97db51c8d80a6a09c (diff) | |
download | zetacomponents-graph-ec26fc5562817f7da9c9f092727cce1042f63e2c.zip zetacomponents-graph-ec26fc5562817f7da9c9f092727cce1042f63e2c.tar.gz |
- Move pie chart elements out of the middle on highlight
Diffstat (limited to 'src/charts/pie.php')
-rw-r--r-- | src/charts/pie.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charts/pie.php b/src/charts/pie.php index 9e4ac5b..e907b03 100644 --- a/src/charts/pie.php +++ b/src/charts/pie.php @@ -82,10 +82,10 @@ class ezcGraphPieChart extends ezcGraphChart $renderer->drawPieSegment( $dataset->color[$label], $center, - $radius, + $radius * ( 1 - $this->options->moveOut ), $angle, $endAngle = $angle + $value / $sum * 360, - 0 + ( $dataset->highlight[$label] ? $radius * $this->options->moveOut : 0 ) ); // Determine position of label |