[Gambas-user] Google Api for generate charts

Arief Bayu Purwanto ariefbayu at ...626...
Thu Apr 17 11:00:42 CEST 2008


On Sat, Mar 29, 2008 at 2:02 PM, andy2 <kaoticus60 at ...151...> wrote:

> I can't use in Gambas component WebBrowser the google api for generate
> charts.
> Please try these api at page http://code.google.com/apis/chart/...
>
> Example of url:
>
>
> http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=s:aaaabbbbbccccfffff

I'm just test it and it work!!!
the solution is to write a html page with only <img> data and have your
WebBrowser object's path set to this file.
eg:
WebBrowser1.Path = "/tmp/test.html"

where test.html is:
-------
<img src='
http://chart.apis.google.com/chart?cht=p3&chd=t:55,45&chs=250x100&chl=Hello|World
'>
-------

That's it, now you have google's graph API working ;)
-- 
Arief Bayu Purwanto
About : http://about.freelancer.web.id/
Blog : http://bayu.freelancer.web.id/



More information about the User mailing list