We have added Google Chart API. We have used the excellent GChart Library developed by Malaiac and budled it with Orchid. After some basic modifications it started working fine. So GoogleChart Library will be bundled with orchid

Have a look at the controller

<?
class googlechart extends controller
{
	function base(){
		$gchart = $this->library->gchart;
		$data = array('01/12' => 1245,'02/12' => 895, 
		              '03/12' => 956, '04/12' => 1356,
		              '05/12' => 1542,'06/12' => 1423);
		$gchart->title = 'Daily Visitors'; 
		$gchart->add_data(array_values($data)); 
		$gchart->add_labels('x',array_keys($data)); 
		$gchart->add_labels('y',array(0,500,1000,1500)); 
		$chartpath =  $gchart->get_Image_Url();
 
		$this->view->set("chartpath",$chartpath);
	}
 
	function pie(){
		$this->setView("base");
		$gchart = $this->library->gchart;
		$gchart->setChartType("p");
		$data = array('A' => 10,'B' => 395, 'C' => 556,"D"=>450);
		$gchart->title = 'Daily Visitors3'; 
		$gchart->add_data(array_values($data));
		$gchart->add_labels('x',array_keys($data)); 
		$chartpath =  $gchart->get_Image_Url();
 
		$this->view->set("chartpath",$chartpath);
	}
 
}
?>
 
And here is the View file used
 
<h1>Demonstrating Google Chart using Orchid</h1>
 
<img src="<?=$chartpath;?>" />

This will output

chart2.png

And

chart1.png

And You can see the Live Demo here :
1. http://javapark.net/hasin/orchid/googlechart
2. http://javapark.net/hasin/orchid/googlechart/pie