I figured it out by changing the format to timeofday and excluding the 
date. I'm just breaking down the time in 3 values. For example, the date on 
the json response is
 2014-07-22T12:30:00Z

I split the string with split('T') which creates 2 strings. I get rid of 
index 0 which is the date. I use index 1 which is the time. I split it 
again with split(':'). I now have an array with 3 values

Then on my google chart, I set the format to timeofday. Input now should be 
in array format as mentioned in the API documentation. Here is jsfiddle.

http://jsfiddle.net/cKv44/

:)

On Sunday, July 27, 2014 5:33:06 PM UTC-5, Neil Camara wrote:
>
> Hi folks,
>
> When there is only one data with a format of datetime, the x axis is 
> incorrect. However, when there are more than one date in datetime format, 
> it looks fine
>
> Check this out, single hour but it's displaying 12:00AM multiple times. I 
> only want to see it one time.
>
> http://i.imgur.com/GYd3rYu.png
>
> now with multiple hours
>
> http://i.imgur.com/xJO14XY.png - 2 dates
> http://i.imgur.com/tCJyUc2.png - 7 dates
>
> I can using string format but when I use this format rather than datetime, 
> localization will not work anymore. I need localization.
>
> Or is this possible? Even if I only have one hour summary of data for 3pm, 
> can I make the google chart still display 1pm 2pm 3pm 4pm 5pm 6pm 7pm on 
> the axis? Of course, the bar will only appear above 3pm.
>
> Any help would be greatly appreciated!
>
> Thanks,
>
> Neil
>

-- 
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.

Reply via email to