Hello!,

I have been trying to use google visualizations in the firefox addons.
I could make the basic column chart work by somehow fixing the
problems (see the below details on how I fixed them).

However, is there any neat way to make the google visualization
libraries work out of the box with xul?

Any help in this regard will be highly appreciated.

Regards,
 cage

How I made visualization work:

document.write was not allowed to be called for injecting the
visualization code. To alleviate this, I explicitly included such
pieces of javascript.

However, this resulted in the following dirty inclusions in my code:

1) Inclusion of javascript files using script tag. Unfortunately it
has some hardcoded numerical values.

<script type="text/javascript" src="http://www.google.com/uds/api/
visualization/1.0/a3aa9bfa513032e109861739c98611fd/
default,columnchart.I.js"></script>

2) The following piece of code to be added within a script tag:

if (window['google'] != undefined &amp;&amp; window['google']
['loader'] != undefined) {
                        if (!window['google']['visualization'])
            {
                            window['google']['visualization'] = {};
                            google.visualization.Version = '1.0';
                            google.visualization.JSHash =
'a3aa9bfa513032e109861739c98611fd';
                            google.visualization.LoadArgs = 
'file\75visualization\46v
\0751\46packages\75columnchart';
                        }
                        google.loader.writeLoadTag("script", 
google.loader.ServiceBase + "/
api/visualization/1.0/a3aa9bfa513032e109861739c98611fd/
default,columnchart.I.js", false);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to