To get the ticks to work with the object notation, you have to use the RC 
version of the API (1.1) instead of the release version (1):

google.load('visualization', '1.1', {packages: ['corechart']});

On Monday, August 19, 2013 12:11:16 AM UTC-4, Jonathan Roy wrote:
>
> The exact error if I only pass ticks which are objects is
>
> viewWindow.max must be greater than viewWindow.min
>
> On Monday, August 19, 2013 12:05:22 AM UTC-4, Jonathan Roy wrote:
>>
>> I changed the default in the playground to this:
>>
>> // Create and draw the visualization.
>>   new google.visualization.BarChart(document.getElementById(
>> 'visualization')).
>>       draw(data,
>>            {title:"Yearly Coffee Consumption by Country",
>>             width:600, height:400,
>>             vAxis: {title: "Year"},
>>             hAxis: {title: "Cups", ticks: [16, {v:32, f:"thirty two"}, {v
>> :64, f:"sixty four"}, 1280000] }}
>>       );
>>
>> However only 16 and 1280000 show on the axis. If I remove those two, so 
>> only the two object ticks remain, then there is an error about max view 
>> window size can't be smaller than the min size.
>>
>> Thanks for any advice!
>>
>

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