Skip to content

Commit

Permalink
Remove 100% pie slice hack
Browse files Browse the repository at this point in the history
The getPieSlicePath primitive can draw it now.
  • Loading branch information
grakic authored and majentsch committed Aug 26, 2014
1 parent 2575634 commit 23aa57a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/Icinga/Chart/PieChart.php
Expand Up @@ -274,9 +274,6 @@ private function renderStackedPie(Canvas $innerBox, DOMElement $labelBox)
$lastRadius = 0;
foreach ($pie['data'] as $idx => $dataset) {
$color = $this->getColorForPieSlice($pie, $idx);
if ($dataset === 100) {
$dataset = 99.9;
}
if ($dataset == 0) {
$labelPos++;
continue;
Expand Down

0 comments on commit 23aa57a

Please sign in to comment.