<?php include ("jpgraph/jpgraph.php"); include ("jpgraph/jpgraph_pie.php"); $graph = new PieGraph(250, 200, "auto"); $graph->SetFrame(true); $data = array(5,4,1,2,5,8,3,3,12,3,5,6,2,9,2); $pieplot = new PiePlot($data); $pieplot->SetGuideLines(true, true, true); $graph->Add($pieplot); $graph->Stroke(); ?>