Got container width error while using Annotated Timeline chart in GWT

270 views
Skip to first unread message

ALEX ZHAO

unread,
Jul 2, 2011, 3:29:09 AM7/2/11
to google-visua...@googlegroups.com
I got following error while trying to add an Annotated Timeline chart in an existing GWT TabLayoutPanel.
(Error): Container width is zero. Expecting a valid width.

However, if I did not add the chart in an existing TabLayoutPanel, but put it in popup DialogBox, it worked.

Anyone knows the reason? Thanks a lot in advance.


Andrew Uricchio

unread,
Aug 1, 2011, 4:11:47 PM8/1/11
to google-visua...@googlegroups.com
You need to set a height/width when you create the chart object:

AnnotatedTimeLine chart2 = new AnnotatedTimeLine(data, createOptions(), "800px", "600px");
Reply all
Reply to author
Forward
0 new messages