Visualization API - VisualizationUtils not calling OnLoad Callback after API is loaded

203 views
Skip to first unread message

Eric Wasserman

unread,
Dec 7, 2011, 10:37:52 AM12/7/11
to Google API Libraries for GWT
I am using the vsualization API version 1.1.2 and am using both the
annotated time line and the pie chart (corecharts). I have noticed
that sometimes the Visualization Utils does not call the
onloadCallback and the graph is not loaded. This does not happen all
of the time, only sometimes. I am not sure if this has to do with my
internet connectivity. This is how I call the package. I read about a
previous issue where the visualizationutils was not calling the onload
callback but in the issue they said that it had been fixed. I am still
seeing the issue. I am using Ie8.

Runnable onLoadCallback = new Runnable() {

public void run() {

// Stuff


}
VisualizationUtils.loadVisualizationApi(onLoadCallback,
AnnotatedTimeLine.PACKAGE);

Eric Wasserman

unread,
Dec 8, 2011, 2:14:23 PM12/8/11
to Google API Libraries for GWT
As a followup, I was wondering if there is a way to test if the
visualization libraries are being loaded or are loaded and if they are
not or if the server is unable to connect to the google site, to
perfrom some other action.

Eric Ayers

unread,
Dec 8, 2011, 6:23:01 PM12/8/11
to gwt-goo...@googlegroups.com
Hi Eric,

if the librarries are open, you'll find a toplevel javascript property defined:

window.google.visualization

-Eric.


--
You are subscribed to the Google Groups "GWT-Google-Apis" group.
For more options, visit http://groups.google.com/group/gwt-google-apis?hl=en



--
Eric Ayers | Software Engineer | zun...@google.com | +1 404 487 9229

Reply all
Reply to author
Forward
0 new messages