I found a solution to my problem, and wanted to close the thread. It
was confirmed with a follow up from the google team. (Thanks for
taking the time to post Eric)

I needed to create a new Chart every time when a view activated using
the MVP, rather than updating the existing chart.

This is talked to in the VisualiationFAQ.

http://code.google.com/p/gwt-google-apis/wiki/VisualizationFAQ
Specifically, the following entry on the FAQ...
.....
I removed a VisualizationWidget from a Panel. When I added it back,
it
was gone! What happened?
GWT developers are used to working with widgets while they are
detached from the DOM. Attaching and detaching the widgets affects
how
and where they appear, but not the widgets themselves. However, many
of the charts provided by the Google Chart Tools API for Interactive
Charts do not support this pattern. (Currently, this applies to the
AreaChart, BarChart, ColumnChart, LineChart, PieChart, and
ScatterChart.) Thus, these charts should be added to a panel once and
not removed until they are no longer needed.
.....

I am loving the Visualization API!

Best,
Owen

On Nov 30, 11:42 pm, McCGJ <[email protected]> wrote:
> To follow up on the use of the Visualization API and MVP I took the
> sample MVP found in the following link and had the same behavior where
> the PieChart disappears, or rather does not render. I did not modify
> the MVP framework from that example that was provided by the Team.
>
> http://code.google.com/p/google-web-toolkit/downloads/detail?name=Tut...
>
> What I did do is add a button in on the GoodbyeViewImpl to switch back
> to the HelloViewImpl.
> I also added a PieChart to the GoodbyeViewImpl.
>
> When the GoodbyeViewImpl initially comes up the PieChart is rendered
> and the SVG elements are present in the DOM. But, when I to the the
> HomeView, and then back to the GoobyeViewImpl the PieChart does not
> render, and there are no SVG elements in the DOM for the browser to
> render.
>
> I can supply a zip file of the source and project in eclipse if you
> would like to check it out.
>
> I will also download the latest build when it is release this month to
> see if any fixes were made.
>
> What should I do at this point? Should I enter a changer request or
> bug?
>
> I am new to to this working with this group, and am very excited to
> get the Visualization API working with the MVP framework.
>
> Best Regards,
> 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.

Reply via email to