From eb0f4a5fc4663d7d1e11c595279b908ce008e790 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 11 Feb 2006 02:55:59 +0000 Subject: [PATCH] Increasing $graphspacing and removing the 1px from drawing the legend strings --- graph_pie.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph_pie.php b/graph_pie.php index b8f4a20..9589dec 100644 --- a/graph_pie.php +++ b/graph_pie.php @@ -117,7 +117,7 @@ class Graph_Pie $colours['white'] = imagecolorallocate($this->image, 255, 255, 255); $graphpadding = 10; - $graphspacing = 3; + $graphspacing = 4; $diameter = $this->dimensions['height'] - (5 * $graphpadding); $radius = $diameter / 2; $graphstart = $graphpadding + imagefontheight(5) + $graphpadding; @@ -161,7 +161,7 @@ class Graph_Pie ); imagefilledpolygon($this->image, $box, 4, $plot[2]); - imagestring($this->image, 2, ($legx + 1 + $graphspacing + $legendbox + $graphspacing), ($graphstart + 1 + $graphspacing + $boxoffset), $plot[0] . " ($plot[1]%)", $colours['black']); + imagestring($this->image, 2, ($legx + 1 + $graphspacing + $legendbox + $graphspacing), ($graphstart + $graphspacing + $boxoffset), $plot[0] . " ($plot[1]%)", $colours['black']); $boxoffset += $graphspacing + $legendbox; } -- 2.22.5