dateTime format > 24 hours

64 views
Skip to first unread message

Henk

unread,
Jan 11, 2013, 8:31:05 AM1/11/13
to google-visua...@googlegroups.com
I'm displaying a ColumnChart with hours on the y-axis.

However when more than 24 hours it triggers: 

Uncaught Error: Type mismatch. Value 24,4,0,0 does not match type timeofday

How could I use time-formatting on the y-axis when more than 24 hours?

Regards,
Henk

asgallant

unread,
Jan 11, 2013, 2:57:27 PM1/11/13
to google-visua...@googlegroups.com
Use a "datetime" type column and pass in Date objects, then format your data and axis labels to use only the time scale you want.  The actual dates used for your objects will be irrelevant, so you can pick anything you want.  As an example, your [24, 4, 0, 0] timeofday entry would become new Date(0, 0, 0, 24, 4, 0, 0);
Reply all
Reply to author
Forward
0 new messages