Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/pieex8.php
include ("../jpgraph.php");
include ("../jpgraph_pie.php");

$data = array(40,60,31,35);

// A new pie graph
$graph = new PieGraph(250,200,"auto");

// Title setup
$graph->title->Set("Adjusting the label pos");

// Setup the pie plot
$p1 = new PiePlot($data);

// Adjust size and position of plot

// Setup slice labels and move them into the plot

// Finally add the plot

// ... and stroke it

Return current item: Monyet