Timelines with numbers

357 views
Skip to first unread message

aravind sr

unread,
Feb 12, 2015, 9:49:04 AM2/12/15
to google-visua...@googlegroups.com
Hi

I am trying to use the timeline chart (https://developers.google.com/chart/interactive/docs/gallery/timeline) with numbers instead of date. While using numbers its not loading. It shows an error message

Cannot read property 'v' of undefined

Here is a test code which I used

http://jsfiddle.net/t26yu0w8/

Any help is appreciated.


Daniel LaLiberte

unread,
Feb 12, 2015, 10:49:05 AM2/12/15
to google-visua...@googlegroups.com
Hi Aravind,

You have found a bug.  In the meantime, the timeline chart does appear to work with numbers if they are large enough, and then it treats them as the number of milliseconds.   I changed your example to add '000' to your numbers: http://jsfiddle.net/dlaliberte/wkwkvk7j/

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, 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/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

aravind sr

unread,
Feb 12, 2015, 11:23:58 AM2/12/15
to google-visua...@googlegroups.com
Thank you. The solution of adding `000` works fine for me.

I will file a bug request for the original problem

Aravind

Reply all
Reply to author
Forward
0 new messages