Very cool Andrew! I'll try this! Thanks a lot!

On Friday, September 19, 2014 6:55:07 PM UTC-5, Andrew Gallant wrote:
>
> You can do this with the hAxis.ticks option:
>
> hAxis: {
>     format: 'hh:mm', // default formatting
>     ticks: [
>         // specify tick marks every hour
>         {v: new Date(2014, 8, 19, 0), f: 'Sep 19, 12AM'}, // override 
> default formatting
>         new Date(2014, 8, 19, 1),
>         new Date(2014, 8, 19, 2),
>         new Date(2014, 8, 19, 3),
>         new Date(2014, 8, 19, 4),
>         new Date(2014, 8, 19, 5),
>         new Date(2014, 8, 19, 6),
>         new Date(2014, 8, 19, 7),
>         new Date(2014, 8, 19, 8),
>         new Date(2014, 8, 19, 9),
>         new Date(2014, 8, 19, 10),
>         new Date(2014, 8, 19, 11),
>         {v: new Date(2014, 8, 19, 12), f: 'Sep 19, 12PM'}, // override 
> default formatting
>         new Date(2014, 8, 19, 13),
>         new Date(2014, 8, 19, 14),
>         new Date(2014, 8, 19, 15),
>         new Date(2014, 8, 19, 16),
>         new Date(2014, 8, 19, 17),
>         new Date(2014, 8, 19, 18),
>         new Date(2014, 8, 19, 19),
>         new Date(2014, 8, 19, 20),
>         new Date(2014, 8, 19, 21),
>         new Date(2014, 8, 19, 22),
>         {v: new Date(2014, 8, 19, 23), f: 'Sep 19, 11PM'} // override 
> default formatting
> }
>
> On Friday, September 19, 2014 3:53:05 PM UTC-4, Neil Camara wrote:
>>
>> Is this possible? Let's say we have 24 points which represent 1 day, 24 
>> hours. Currently, the type is datetime
>>
>> I'd like the haxis to have a format of Sep 19, 12AM then the following 
>> will just be hh:mm until Sept 19, 12PM  then shows hh:mm again until Sept 
>> 19, 11PM
>>
>> Can we specify a custom format for each hAxis value?
>>
>> Thanks!
>>
>

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