I don't see how that's possible because the packages for the required
charts are loaded in the host page:
<script type="text/javascript" src="http://www.google.com/jsapi";></
script>
        <!-- Load packages for visualization API. -->
<script type="text/javascript">
    google.load("visualization", "1", {'packages' :
["annotatedtimeline", "barchart"] });
</script>

and for the first charts to get displayed (in my case the barcharts)
you need to log in first. But even if I wait some time and then login
the problem occurrs...

On 18 Mai, 19:09, "Eric Z. Ayers" <[email protected]> wrote:
> Hmm... My offhand guess is that you are making calls into the API
> before the AjaxLoader or VisualizationUtils.loadAPI() method Runnable
> returns.
>
> On May 15, 8:32 am, googelybear <[email protected]> wrote:
>
> > Hi,
>
> > When I call DataTable.create(); in my app I get the following
> > exception:
>
> > com.google.gwt.core.client.JavaScriptException: (TypeError):
> > $wnd.google.visualization.DataTable is not a constructor
> >  fileName: jar:file:/home/myapp/lib/gwt-visualization.jar!/com/google/
> > gwt/visualization/client/DataTable.java
> >  lineNumber: 33
> >  stack: ()@jar:file:/home/myapp/lib/gwt-visualization.jar!/com/google/
> > gwt/visualization/client/DataTable.java:33
> > private void com.google.gwt.http.client.Request.fireOnResponseReceived
> > (com.google.gwt.http.client.RequestCallback)([object
> > gwt_nativewrapper_class])@:0
> > ()@jar:file:/opt/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/http/
> > client/XMLHTTPRequest.java:253
> > @:0
>
> > This only happens in the embedded browser. When I compile it and open
> > it in forefox the bar chart is displayed. Any ideas what I'm doing
> > wrong?
--~--~---------~--~----~------------~-------~--~----~
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