mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Remove 100% pie slice hack
The getPieSlicePath primitive can draw it now.
This commit is contained in:
parent
2575634dec
commit
23aa57a5d7
@ -274,9 +274,6 @@ class PieChart extends Chart
|
|||||||
$lastRadius = 0;
|
$lastRadius = 0;
|
||||||
foreach ($pie['data'] as $idx => $dataset) {
|
foreach ($pie['data'] as $idx => $dataset) {
|
||||||
$color = $this->getColorForPieSlice($pie, $idx);
|
$color = $this->getColorForPieSlice($pie, $idx);
|
||||||
if ($dataset === 100) {
|
|
||||||
$dataset = 99.9;
|
|
||||||
}
|
|
||||||
if ($dataset == 0) {
|
if ($dataset == 0) {
|
||||||
$labelPos++;
|
$labelPos++;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user