<?php
include('pie_chart/phpgraphlib.php');
include('pie_chart/phpgraphlib_pie.php');
$graph = new PHPGraphLibPie(400, 200);
$data = array("CBS" => 6.3, "NBC" => 4.5,"FOX" => 2.8, "ABC" => 2.7, "CW" => 1.4);
$graph->addData($data);
$graph->setTitle('8/29/07 Top 5 TV Networks Market Share');
$graph->setLabelTextColor('50,50,50');
$graph->setLegendTextColor('50,50,50');
$graph->createGraph();
?>


<?php
include('phpgraphlib_pie.php');

include('phpgraphlib.php');

$graph = new PHPGraphLib(495,280);
$data = array('alpha'=>23, 'beta'=>45, 'cappa'=>20, 'delta'=>32, 'echo'=>14);
$data2 = array('alpha'=>15, 'beta'=>23, 'cappa'=>23,'delta'=>12, 'echo'=>17);
$data3 = array('alpha'=>43, 'beta'=>23, 'cappa'=>34, 'delta'=>16, 'echo'=>20);
$data4 = array('alpha'=>23, 'beta'=>34, 'cappa'=>23, 'delta'=>9, 'echo'=>8);
$graph->addData($data, $data2, $data3, $data4);
$graph->setupYAxis("15");
$graph->setGradient('teal', '#0000FF');
$graph->setXValuesHorizontal(true);
$graph->setXAxisTextColor ('navy');
$graph->setLegend(true);
$graph->setLegendTitle('M1', 'M2', 'M3', 'M4');
$graph->createGraph();
?>