public function test(){
// Some data
$p1 = array(20,27,45,75,90);
// Create the Pie Graph.
$graph = new PieGraph(800,450);
$graph->SetShadow();
// Set A title for the plot
$graph->title->Set("Pie Graph");
$graph->title->SetFont(FF_VERDANA,FS_BOLD,18);
$graph->title->SetColor("darkblue");
$graph->legend->Pos(0.1,0.2);
$graph->legend->Pos(0.9,0.9,'left','bottom');
$graph->legend->SetLayout(LEGEND_VERT);
// Create pie plot
$p1 = new PiePlot3d($p1);
$p1->SetTheme("earth");
$p1->SetCenter(0.4);
$p1->SetAngle(20);
$p1->value->SetFont(FF_ARIAL,FS_NORMAL,12);
$p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"));
$graph->Add($p1);
$data['test'] = $graph->Stroke();
$this->load->view("test", $data);
}
public function test(){
// Some data
$p1 = array(20,27,45,75,90);
// Create the Pie Graph.
$graph = new PieGraph(800,450);
$graph->SetShadow();
// Set A title for the plot
$graph->title->Set("Pie Graph");
$graph->title->SetFont(FF_VERDANA,FS_BOLD,18);
$graph->title->SetColor("darkblue");
$graph->legend->Pos(0.1,0.2);
$graph->legend->Pos(0.9,0.9,'left','bottom');
$graph->legend->SetLayout(LEGEND_VERT);
// Create pie plot
$p1 = new PiePlot3d($p1);
$p1->SetTheme("earth");
$p1->SetCenter(0.4);
$p1->SetAngle(20);
$p1->value->SetFont(FF_ARIAL,FS_NORMAL,12);
$p1->SetLegends(array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct"));
$graph->Add($p1);
$data['graps'] = $graph->Stroke();
$this->load->view("viewfile", $data);
}