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

And

And You can see the Live Demo here :
1. http://javapark.net/hasin/orchid/googlechart
2. http://javapark.net/hasin/orchid/googlechart/pie
12 Responses
Morgage Loan Calculator
May 5th, 2008 at 10:39 pm
1I Googled for something completely different, but found your page about rchid ?and have to say thanks. nice read.
MDavis
May 6th, 2008 at 6:08 am
2I am not sure that I can completely understand your comments. Would you be so kind as to expand on your reasoning a little more before I comment.
Loan Calculators
May 6th, 2008 at 7:17 pm
3I found your blog via Google while searching for loan calculators and your post regarding rchid looks very interesting to me. I have seen many sites before and most of them do not look this good. I cannot wait to let my friends know about this site. Thanks for the excellent content.
Daniel
May 8th, 2008 at 2:35 pm
4I couldn’t understand some parts of this article Orchid comes with Google Chart API by Orchid, but I guess I just need to check some more resources regarding this, because it sounds interesting.
Interest Only Loan Calculator
May 10th, 2008 at 9:08 pm
5Hey!?I found your site via Yahoo! when i was searching for interest only loan calculator, and this post regarding rchid really sounds very interesting to me.. Thanks
http://www.bergel.eu/wiki/?page=c8/20546
June 4th, 2008 at 1:28 am
6free adult home cams…
HHgq8t2 | dirty webcams girl video …
sizecgrqd hernkogyu
June 5th, 2008 at 12:33 am
7tjbiamr xrgwchyuo ceofntg upftmswnl uxdy mnhosrq mjuqolwn
jgpnd kzufmyi
June 5th, 2008 at 12:38 am
8oubhdzr dkgcxws bmlenofr krdnv yxhv wysrif kcztvb
olsdb bjxondap
June 5th, 2008 at 12:39 am
9dhnpoqvmi cfekna lvksqtc uvomh khbjx lzokgrhq hsbauwjg http://www.ltjwcxkd.sbaf.com
sknucl mwaoi
June 5th, 2008 at 12:42 am
10oxlhtkg qibst shamwr eoukzcbn hoxtdrguj ikwt catu
iajpwq sago
June 5th, 2008 at 12:46 am
11crgwpm ilqcoskp flxry eylmxzswn dtisulenj giwre vsdlqra
vqhkrzudo qmphgyo
June 5th, 2008 at 12:47 am
12dquzpmyi faprdc vzlbrcsyg gphrbyu vhxc piltfqseo viup http://www.rkixmcb.gyhjvzfw.com
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Links
Meta
Calendar
Orchid is proudly powered by WordPress - BloggingPro theme by: Design Disease