diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-10-23 08:20:31 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-10-23 08:20:31 +0000 |
commit | 22b4770294341d679fe3ff1f06960c62e0a9f3fe (patch) | |
tree | 246247b623d5fdbb42a912ae3b7399828a12db89 /src/renderer | |
parent | 3ae9e5dd86cae4bcedb8d5ea9ec029b5184f1a20 (diff) | |
download | zetacomponents-graph-22b4770294341d679fe3ff1f06960c62e0a9f3fe.zip zetacomponents-graph-22b4770294341d679fe3ff1f06960c62e0a9f3fe.tar.gz |
- Correctly use symbols for non stacked bars in 3d renderer
# Fixes several test failures
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/3d.php | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/renderer/3d.php b/src/renderer/3d.php index e9934a0..dc066fe 100644 --- a/src/renderer/3d.php +++ b/src/renderer/3d.php @@ -1202,10 +1202,34 @@ class ezcGraphRenderer3d switch ( $symbol ) { case ezcGraph::NO_SYMBOL: + $this->drawRectangularBar( + $context, + $color, + $position, + $barWidth, + $offset, + $axisPosition, + $startDepth, + $midDepth, + $endDepth + ); + break; case ezcGraph::DIAMOND: + $this->drawDiamondBar( + $context, + $color, + $position, + $barWidth, + $offset, + $axisPosition, + $startDepth, + $midDepth, + $endDepth + ); + break; case ezcGraph::BULLET: case ezcGraph::CIRCLE: - $this->drawRectangularBar( + $this->drawCircularBar( $context, $color, $position, @@ -1214,7 +1238,8 @@ class ezcGraphRenderer3d $axisPosition, $startDepth, $midDepth, - $endDepth + $endDepth, + $symbol ); break; } @@ -1264,34 +1289,10 @@ class ezcGraphRenderer3d switch ( $symbol ) { case ezcGraph::NO_SYMBOL: - $this->drawRectangularBar( - $context, - $color, - $position, - $barWidth, - $offset, - $start->y, - $startDepth, - $midDepth, - $endDepth - ); - break; case ezcGraph::DIAMOND: - $this->drawDiamondBar( - $context, - $color, - $position, - $barWidth, - $offset, - $start->y, - $startDepth, - $midDepth, - $endDepth - ); - break; case ezcGraph::BULLET: case ezcGraph::CIRCLE: - $this->drawCircularBar( + $this->drawRectangularBar( $context, $color, $position, @@ -1300,8 +1301,7 @@ class ezcGraphRenderer3d $start->y, $startDepth, $midDepth, - $endDepth, - $symbol + $endDepth ); break; } |