diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-05-25 09:28:26 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-05-25 09:28:26 +0000 |
commit | 9d608ebc1f95c411add7ebdb3f4157d56ca9a7f9 (patch) | |
tree | 04e88f5b049249c779a39385cb2765ead16c9e95 | |
parent | f17590aed8790e6142b7d5b1c345068abe8f3ebc (diff) | |
download | zetacomponents-graph-9d608ebc1f95c411add7ebdb3f4157d56ca9a7f9.zip zetacomponents-graph-9d608ebc1f95c411add7ebdb3f4157d56ca9a7f9.tar.gz |
. Forgot to commit changes in 3d renderer in last commit
-rw-r--r-- | src/renderer/3d.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/renderer/3d.php b/src/renderer/3d.php index 1bdac0a..02c56c8 100644 --- a/src/renderer/3d.php +++ b/src/renderer/3d.php @@ -243,7 +243,7 @@ class ezcGraphRenderer3d // Split labels up into left a right site and index them on their // y position - $this->pieSegmentLabels[(int) ($pieSegmentCenter->x > $center->x)][$pieSegmentCenter->y] = array( + $this->pieSegmentLabels[(int) ($pieSegmentCenter->x > $center->x)][(int) ( $pieSegmentCenter->y * 100 )] = array( new ezcGraphCoordinate( $center->x + cos( deg2rad( $direction ) ) * $radius * 2 / 3 * ( 1 - $this->options->moveOut ), $center->y + sin( deg2rad( $direction ) ) * ( $radius - $this->options->pieChartHeight ) * 2 / 3 * ( 1 - $this->options->moveOut ) * $this->options->pieChartRotation @@ -321,6 +321,8 @@ class ezcGraphRenderer3d foreach ( $labelPart as $height => $label ) { + $height = (int) ( $height / 100 ); + if ( ( $height - $labelHeight / 2 ) > $minHeight ) { $share = min( $toShare, ( $height - $labelHeight / 2) - $minHeight ); |