Gives "Container width is zero. Expecting a valid width." error when we add ATL chart dynamic.

229 views
Skip to first unread message

Vikas Yadav

unread,
Dec 20, 2011, 12:31:38 AM12/20/11
to Google Visualization API
I've added ATL chart to the container at the time of screen creation
that's works fine. but on some event when I remove that chart and add
new chart into the container it gives "Container width is zero.
Expecting a valid width." error even though I've given width and
height to the ATL chart (same parameters which I've given for 1st
chart)

asgallant

unread,
Dec 20, 2011, 8:53:19 AM12/20/11
to google-visua...@googlegroups.com
Can you post code that reproduces the error?

Vikas Yadav

unread,
Dec 21, 2011, 2:04:31 AM12/21/11
to Google Visualization API
While preparing sample I thought I should use GWT panel, and it worked
with GWT panel :)
In our application I was adding chart into GXT panel, there it was
giving this error.

Thanks,
Vikas

Cesium

unread,
Feb 18, 2012, 6:19:24 PM2/18/12
to google-visua...@googlegroups.com
Yup, I just saw this too.

Had to replace my DockLayoutPanel with a DockPanel.
Then, whenever I had to nuke the Annotated Timeline (in order to plot an entirely different
dataset) I just removed it from the panel, created a new timeline object, added it back to the panel,
and re-bound my handlers to this new object.

Barely a class 2 pain in the @ss.

David

Reply all
Reply to author
Forward
0 new messages