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.
On Wed, Sep 24, 2014 at 1:35 PM, John Beranek - PA <
[email protected]> wrote:
> I'm using a line chart to chart some data with a continuous date format
> x-axis.
>
> Previously I was only plotting a single data point per day, and everything
> was fine, but I recently changed the chart so I get a point per hour.
>
> However, I'm unhappy with the 12-hour time format that the chart is
> showing:
>
>
>
> <https://lh6.googleusercontent.com/-nMZ48zvyQOQ/VCMAcpdU8OI/AAAAAAAAAL0/0ZxIM82K8mg/s1600/2014-09-24_18-31-25.png>
> I tried the following options code, but it has no effect - thinking about
> it, I wouldn't really want the format to be so rigid, because as the
> screenshot shows, the x-axis labels are more clever than a fixed date/time
> format...
>
> hAxis: { format: 'yyyy/MM/dd HH:mm'},
>
>
> So, is it possible to change the x-axis time format to 24-hour?
>
> Cheers,
>
> John
>
> --
> 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.