Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/pieex9.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("Exploding all slices");

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

// Adjust size and position of plot

// Setup slice labels and move them into the plot

// Explode all slices

// Add drop shadow

// Finally add the plot

// ... and stroke it

Return current item: Monyet