Reputation: 5049
I have several content panels, which I switch between, and several of them have charts. (ie. they use the google visualization api).
The problem is that the first time you view a panel the chart displays, but then when you switch back to it later the chart does not display. It just shows up as blank.
The solution I have currently is to just recreate the chart and set its widget to the correct location in the grid I am using. However, this seems like overkill...
Is there a better way to do this?
Upvotes: 0
Views: 252
Reputation: 11
its been a known bug in charts for years. My workaround was to addAttachHandler
and automatically redraw the chart whenever an attach event is fired.
Upvotes: 1
Reputation: 17489
Yes that's somehow a known problem.
Currently with google chart tools in GWT you have to re-create the charts when they are detached or any parent container element is detached.
There is no workaround AFAIK.
Upvotes: 1