Error when using timeline with many (15) rows

40 views
Skip to first unread message

Chris Bandy

unread,
Nov 1, 2013, 1:34:32 PM11/1/13
to google-visua...@googlegroups.com
When using the Timeline chart with 15 rows of data, the chart does not display. There are no errors in the console. Is this a bug or am I doing something wrong?

Here's a fiddle that fails. Commenting out line 30 (data row 15) allows the chart to display properly: http://jsfiddle.net/AMGD5/

Thanks!
-- Chris

Chris Bandy

unread,
Nov 1, 2013, 1:48:28 PM11/1/13
to google-visua...@googlegroups.com
It seems to have something to do with the width of the container. I've set the container to a fixed width in an update: http://jsfiddle.net/AMGD5/1/

-- Chris
Message has been deleted

asgallant

unread,
Nov 1, 2013, 4:29:25 PM11/1/13
to google-visua...@googlegroups.com
What browser are you testing in?  Your first example works fine in Chrome, but the setting the container width to "15em" causes the second example to fail.

Chris Bandy

unread,
Nov 5, 2013, 2:20:11 PM11/5/13
to google-visua...@googlegroups.com
Chrome 30.0.1599.101 and Safari 5.1.10 (6534.59.10)

-- Chris

asgallant

unread,
Nov 5, 2013, 2:53:07 PM11/5/13
to google-visua...@googlegroups.com
I suspect that the API is calculating some minimum width for each bar and if the container width is less than the width required to fit all of the bars, the chart throws an error.  Could someone on the dev team comment on this?

George Madrid

unread,
Nov 6, 2013, 9:48:43 AM11/6/13
to google-visua...@googlegroups.com
Aha! I was finally able to duplicate this problem! 

This is a known (fixed) bug that has to do with the way that we are determining which units and values to use for the horizontal axis. This bug is hyper-sensitive to the width of the chart which is why I was unable to duplicate it until I used Drew's 15em trick. 

As a work-around, I suggest that you change the version number in the google.load statement from "1" to "1.1". This will get you our about-to-be-shipped version. In the meantime, I'll verify that this is indeed the problem, and see about cherry-picking the fix. 

Let me know if you continue to have problems, and keep an eye out for the release announcement. 

George




--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/SPlWQWEtxkE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages