--- a/graphs/displaySuppliersGraph.php +++ b/graphs/displaySuppliersGraph.php @@ -63,11 +63,11 @@ // Width and height of the graph $width = 800; -$height = 800; +$height = 1000; // Create a graph instance $graph = new PieGraph($width, $height); $pieplot = new PiePlot($values); -$pieplot->SetCenter(400, 300); +$pieplot->SetCenter(400, floor($height/2)); $pieplot->SetGuideLines(true, false); $pieplot->SetLegends($suppliers); $pieplot->SetTheme('earth'); @@ -77,4 +77,5 @@ $graph->legend->SetColumns(2); // Display the graph $graph->Stroke(); -?> +?> +