Sorry for delay in reply,

> But chart doesn't graph at all...Is there something I'm doing wrong?

Without seeing your array structure and javascript code I can't really say.

Are you sure if you debug your final array it echoes as follows?

> Array
> (
>     [0] => ["Age","Clients","Not Offered","Accepted Offer","Declined Offer"]
>     [1] => ["16",10,7,5,0]
>     [2] => ["17",27,22,13,4]
>     [3] => ["18",13,8,7,2]
>     [4] => ["19",12,6,6,1]
>     [5] => ["20",8,2,6,0]
>     [6] => ["21",7,4,3,0]
> )

Have you tried using the Google Visualisation Playground?
http://code.google.com/apis/ajax/playground/?type=visualization#column_chart

Regards,


        Paul Gardner   Affable Internet Geek   |   Email: [email protected]
Follow us on Twitter for hints and tips @WebbedIT

On 15 May 2012, at 22:43, Steven Scaffidi wrote:

> Hi phpMagpie - I followed your directions and I have my array formatted 
> correctly as you described above in array named $chartData. I tried doing 
> this: 
> 
> var data = google.visualization.arrayToDataTable([".join(',', $chartData)."]);
> 
> But chart doesn't graph at all...Is there something I'm doing wrong?
> 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to