From c5cface661133336f045c19279430ccff986a26b Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Thu, 28 Aug 2014 16:40:34 +0200 Subject: [PATCH] Improve readability of small pie charts Use a bigger font, to ensure that small pie charts still have readable labels. --- library/Icinga/Chart/Primitive/PieSlice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Chart/Primitive/PieSlice.php b/library/Icinga/Chart/Primitive/PieSlice.php index d56a73ba5..631013d69 100644 --- a/library/Icinga/Chart/Primitive/PieSlice.php +++ b/library/Icinga/Chart/Primitive/PieSlice.php @@ -176,7 +176,7 @@ class PieSlice extends Animatable implements Drawable // Draw the text box $text = new Text($rel[0]+1.5, $rel[1], $this->caption); - $text->setFontSize('2.5em'); + $text->setFontSize('5em'); $text->setAlignment(($midRadius > M_PI ? Text::ALIGN_END : Text::ALIGN_START)); $group->appendChild($path->toSvg($ctx));