summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-11-06 11:02:05 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-11-06 11:02:05 +0000
commit2ad6c681d42b3fe699e2506b3f1d0f5ed5cd0e55 (patch)
tree2f271c071551336b9d89e020a6750bcb56f44dc6 /src/driver/svg.php
parent3633fbfc973b3b88f43dba84558ceef2a3c1510f (diff)
downloadzetacomponents-graph-2ad6c681d42b3fe699e2506b3f1d0f5ed5cd0e55.zip
zetacomponents-graph-2ad6c681d42b3fe699e2506b3f1d0f5ed5cd0e55.tar.gz
- Fixed pie charts in 3d driver with only one 100% data point
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r--src/driver/svg.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index 109aaed..829b73a 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -708,6 +708,11 @@ class ezcGraphSvgDriver extends ezcGraphDriver
$endAngle = $tmp;
}
+ if ( ( $endAngle - $startAngle ) >= 360 )
+ {
+ return $this->drawCircle( $center, $width, $height, $color, $filled );
+ }
+
// We need the radius
$width /= 2;
$height /= 2;
OpenPOWER on IntegriCloud