summaryrefslogtreecommitdiffstats
path: root/src/charts/pie.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-07-13 17:33:46 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-07-13 17:33:46 +0000
commit14f4f83b181822bb65c55ca76eb0e28157ba43b4 (patch)
tree576656980d94b2ddcf05d3f1c4784a336c1971ce /src/charts/pie.php
parent70674b102034998db08071c26e6ff0f801d4c1b9 (diff)
downloadzetacomponents-graph-14f4f83b181822bb65c55ca76eb0e28157ba43b4.zip
zetacomponents-graph-14f4f83b181822bb65c55ca76eb0e28157ba43b4.tar.gz
- Fixed pie chart labeling
- Fixed some test cases
Diffstat (limited to 'src/charts/pie.php')
-rw-r--r--src/charts/pie.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charts/pie.php b/src/charts/pie.php
index 0abf6a8..f886c36 100644
--- a/src/charts/pie.php
+++ b/src/charts/pie.php
@@ -72,7 +72,7 @@ class ezcGraphPieChart extends ezcGraphChart
$dataset->color[$label],
$angle,
$angle += $value / $sum * 360,
- sprintf( $this->options->label, $label, $value, $sum / $value * 100 ),
+ sprintf( $this->options->label, $label, $value, $value / $sum * 100 ),
$dataset->highlight[$label]
);
}
OpenPOWER on IntegriCloud