-----------------------------------------------------------------------
Background.........................................................
I created a MyPieChart class that wraps the PieChart.
import
com.google.gwt.visualization.client.visualizations.corechart.PieChart;
import
com.google.gwt.visualization.client.visualizations.corechart.PieChart.PieOptions;
GWT 2.4.0
Visualization 1.1.2
I am loading the the CoreCharts packages
VisualizationUtils.loadVisualizationApi ("1", onLoadCallback,
CoreChart.PACKAGE, AnnotatedTimeLine.PACKAGE,
IntensityMap.PACKAGE, MapVisualization.PACKAGE);
I also loaded the RC version from zip file dated gwt-
visualization-1.1.2-rc2.
I pass the instance of piechart to a VerticalPanel which is contained
in a view.
myPanel.add(pieChart).
public class HomeViewImpl extends MainViewBase implements HomeView {
where
In my EntryPoint class OnModule load I am using RootLayoutPanel
RootLayoutPanel.get().add(appWidget);
The appWidget is a custom class
public class SimpleWidgetPanel extends LayoutPanel implements
AcceptsOneWidget {...
This allows me to use the latest LayoutPanels.
I am using browsers: Chrome and OmniWeb
-----------------------------------------------------------------------
Runtime........................................................
At runtime the PieChart comes up and is rendered properly and I can
interact with it.
When I switch to another view using MVP via places, and then go back
again the piechart is NOT there. When I review the elements in the DOM
the DIV tag is present by no body, like there was before. It almost
looks like it is getting cleaned up, or garbage collected.
Note that I have other charts in the GUI that are present when I move
between views: IntensityMap. These work fine, also, I am using some
GChart based bar charts that work also.
Best,
Owen
--
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.