I am dynamically adding a PieChart to my FormPanel after the panel has
been rendered. In the past when I add new components, I simply call
doLayout() on the panel and the new component appears.
I am not seeing this behavior with a PieChart - is that because it is
not a Component, but a Widget? I have tried adding the PieChart to a
new Panel and adding the Panel to the parent FormPanel, but I see the
same result (the PieChart is not displayed).
In any case, the PieChart always appears when I resize the browser.
Below is the code I use when I add an intermediate Panel:
if (panel != null)
{
this.remove(panel.getId());
}
panel = new Panel();
pieChart = new PieChart(dataTable, options);
panel.add(pieChart);
// Add new panel as the 4th component
this.insert(3,panel);
panel.doLayout();
this.doLayout();
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---