From fc7990c62d85fdebef4a438a1fbc9d69a3710d55 Mon Sep 17 00:00:00 2001 From: cassiopc Date: Wed, 22 Aug 2012 16:39:03 +0200 Subject: small bug fixes, inclusion of file size limit configurable --- boca-1.5.0/src/admin/report/piechart.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'boca-1.5.0/src/admin/report/piechart.php') diff --git a/boca-1.5.0/src/admin/report/piechart.php b/boca-1.5.0/src/admin/report/piechart.php index 18d8d04..e6dbf95 100644 --- a/boca-1.5.0/src/admin/report/piechart.php +++ b/boca-1.5.0/src/admin/report/piechart.php @@ -41,7 +41,12 @@ else $chart = new PieChart(400, 250); if(isset($_GET['order'])) $chart->order=true; +else $chart->order=false; +$tot=0; +for($i=1;$iaddPoint(new Point($v[$i], $v[$i+1], $color)); + if($v[$i+1] > $tot/100) + $chart->addPoint(new Point($v[$i], $v[$i+1], $color)); + else + $chart->addPoint(new Point($v[$i], $tot/100, $color)); } $chart->setTitle($v[0]); -- cgit v1.2.3