I think I finally got to the bottom of this. The strange behavior with charts not being shown is related to the GXT framework's (which I'm using for my widgets) lazy rendering policy: The DOM of a widget is not created on constructor call (as in the regular gwt widgets) but lazily when the widget get's "attached" (it is connected to the root panel via it's parent containers). In my case I created the visualization and added it to it's parent container, which was not attached yet, therefore the javascript behind the scenes magic of the visualization could not manipulate the DOM and nothing gets displayed.
Summary: Whenever you use a visualization in a GXT[1] application make sure that the container for the visualization is attached before creating the visualization. [1] http://extjs.com/products/gxt/ On 6 Mai, 12:15, googelybear <[email protected]> wrote: > I just found what the problem is: As soon as you call layout() on the > container that holds multiple charts, the existing charts will > disappear and only the one just added is shown. If you add() multiple > charts and call layout() after adding them all ALL OF THEM are > displayed. > I'll post a code sample later on. > > On 6 Mai, 10:45, VizBoy <[email protected]> wrote: > > > Can you send us some code samples so we can have a look? > > > - VizBoy. > > > On Tue, May 5, 2009 at 12:42 AM, googelybear <[email protected]> wrote: > > > > Hi, > > > > I am unable to display multiple bar graphs on the same page in > > > Firefox. When the screen gets rendered it looks very funny: The first > > > bargraph gets displayed, then disappears, the second bargraph gets > > > rendered, then disappears also, etc. until the last bargraph is > > > renderd which then remains visible (the others remain hidden). > > > Inspection with firebug show the iframe that gets generated is empty > > > (empty body tag). > > > This problem only occurs in Firefox - it works fine in IE7. > > > I'm using the latest visualizations (1.0.1) and gwt 1.6. > > > > any ideas what goes wrong here? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
