<?php
include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_pie.php");
$graph = new PieGraph(250, 200, "auto"); 
$graph->SetFrame(true);
$data = array(32, 21, 24, 35, 18);
$pieplot = new PiePlot($data);
$pieplot->Explode(array(0, 0, 10, 0, 20));
$graph->Add($pieplot);
$graph->Stroke();
?>