Forgot the second part:

With the data as Date objects, you can set the hAxis.format option as well, 
which formats the axis labels:

hAxis: {
    format: 'MMM dd yyyy'
}

To answer your question directly, the "ticks" suboption explicitly sets the 
axis values to use.  When the user pans or zooms the chart, the explicit 
values are overridden, and so the ticks suboption is ignored.

On Monday, December 2, 2013 11:21:13 AM UTC-5, asgallant wrote:
>
> If you have Unix timestamps, have you considered using Date objects for 
> your domain column instead?  You can create them trivially from Unix 
> timestamps, and then format them however you like.  The format is "new 
> Date(<unix timestamp>)", and you can format them with a DateFormatter:
>
> // format column 0 of the DataTable as "MMM dd yyyy"
> var dateFormatter = new google.visualization.DateFormat({pattern: 'MMM dd 
> yyyy'});
> dateFormatter.format(data, 0);
>
> On Monday, December 2, 2013 4:16:00 AM UTC-5, [email protected] wrote:
>>
>> Hi,
>>
>> I have a set of ticks labels for horizontal axis in a combo chart, 
>> showing a string insted of a Unix timestamp, and it works perfectly.
>> However, when I use the new explorer option for zooming the chart the 
>> labels are lost and the chart shows only the timestamp on the axis.
>> It seems that every time a zoom event is performed, the tick labels are 
>> forgotten... Any ideas?
>>
>

-- 
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/groups/opt_out.

Reply via email to