Yes, each set (e.g. "minutes", "hours") is for the different resolutions of the value. Look for the smallest non-zero part of the value to decide which resolution applies. So "hours" applies to 3pm but "minutes" applies to 3:15pm.
On Wed, Sep 24, 2014 at 2:32 PM, John Beranek - PA < [email protected]> wrote: > [Unusually for me I'm top-posting, not sure on Google Groups etiquette... > ;)] > > Thanks for the quick reply. > > So, the different option sets are for the different date/time resolutions, > yes? > > I'll have a play and see what I like the best. I think I may stick with > the short English month names. > > Cheers, > > John > > On Wednesday, 24 September 2014 19:25:47 UTC+1, Daniel LaLiberte wrote: >> >> John, >> >> We actually do have more formatting options for the date and time axes, >> but they are, as of yet, undocumented. We should probably make the format >> option work as you guessed as well, at least as a fallback. >> >> Here is a sneak peak of how to use the new format options to do what I >> believe you want: >> >> "hAxis": { >> "gridlines": { >> "count": "-1", >> "units": { >> "minutes": { >> "format": [ >> "HH:mm" >> ] >> }, >> "hours": { >> "format": [ >> "MM/dd HH", >> "HH" >> ] >> }, >> "days": { >> "format": [ >> "yyyy/MM/dd" >> ] >> } >> }}} >> >> There are similar options under minorGridlines as well, to control the >> format of the minor ticks. >> >> -- > 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 [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
