On Tue, Jun 16, 2009 at 7:06 PM, Chris <[email protected]> wrote:

>
> Indeed, that was it.  I had already done the loadVisualizationApi for
> another chart, and my packages list did not include table.
>
> So, if I want two visualiztion components on the same page - what is
> the proper way to instantiate them?  I do the
> VisualizationUtils.loadVisualizationApi call once and create all the
> charts in the callback I hand it?  If so, I guess i should pass it all
> the packages I'll want to use?


that's the general idea. I often call loadVisualizationApi() in
onModuleLoad() so that all the code of the application runs after the
visualization api has been loaded, and I pass it all the visualizations I
expect to use.

 What if I want to create other stuff
> later?


you can call loadVisualizationApi() more than once to load new packages.

 Is there a way to check and see if the api has been loaded?


 currently, no, but it shouldn't be too hard to do by hand.


>
> If there is a code example of two charts on one page that might be
> clarifying...


the jar includes some sample applications -- look at the HelloVisualization
sample.


>
> Chris
>
>
> On Jun 16, 3:29 am, MC Get Vizzy <[email protected]> wrote:
> > this usually means that the Google Visualization API has not been loaded
> > yet, which is usually because the call to
> > VisualizationUtils.loadVisualizationAPI is missing from the code.  See
> > "calling the ajax loader" in the Getting
> > Started<
> http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis..
> .>page.
> >  this method is often called in EntryPoint.onModuleLoad().
> >
> > if that doesn't help, let us know.
> >
> > On Mon, Jun 15, 2009 at 8:38 PM, Chris <[email protected]> wrote:
> >
> > > Hi,
> > >  I'm using the java API with the google app engine, and I'm trying to
> > > make a simple table. On this call, though
> >
> > > Table t = new Table(table, Table.Options.create());
> >
> > > I get the error in the title of the post:
> >
> > > "$wnd.google.visualization.Table is not a constructor"
> >
> > > I don't see anything obvious on in the Table class.  I'm using version
> > > 1.0.2
> >
>

--~--~---------~--~----~------------~-------~--~----~
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