Hello,
I'm using Forms Manager Gold on my Joomla server and I've edited their code
for Google Charts. Below is the code I have working for a simple chart.
I'd like some help, please and thank you, on how I would add the Google
Chart Options to this code.
$database=JFactory::getDBO();
$database->setQuery('select count(*) as `cnt`, `warehouse` as `title` from
Inspection_Findings group by `warehouse`');
$a = $database->loadObjectList();
$url = 'http://chart.apis.google.com/chart?cht=p3&chs=500x200';
$url .= '&chl=';
foreach ($a as $value) $url .= urlencode($value->title).'|';
$url = substr($url, 0, strlen($url)-1);
$url .='&chd=t:';
foreach ($a as $value) $url .= $value->cnt.',';
$url = substr($url, 0, strlen($url)-1);
echo '<img src ="'.$url.'" />';
Thanks for any help you can give me.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/9effa534-a026-4624-9d82-603b42433c8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.