<?php
include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_pie.php");
$graph = new PieGraph(300, 200, "auto");
$graph->SetFrame(true);
$data = array(45, 23, 18, 32);
$pieplot = new PiePlot($data);
$pieplot->value->SetFont(FF_ARIAL, FS_BOLD, 18);
$pieplot->value->SetAngle(-10);
$graph->Add($pieplot);
$graph->Stroke();
?>