Ahh, sorry, that's me not paying attention  >;o)

First, the semicolon is causing the error - get rid of it and the error 
should go away.  Second, the hAxis set of options is not available in the 
AnnotatedTimeline charts (you can use the dateFormat option to format the 
dates as the appear in the upper right corner when you hover over points, 
but there is no axis format control).  Third, to format years in the dates, 
use lowercase "y" not uppercase "Y".

If you need to have the axis values formatted in a specific way, you can 
get most (90+%) of the functionality of the AnnotatedTimeline charts using 
regular line charts in combination with 
ChartRangeFilters<https://developers.google.com/chart/interactive/docs/gallery/controls#chartrangefilter>
 (and, 
as a free bonus, you won't have any Flash ruining running on your page).

On Wednesday, June 27, 2012 12:11:34 PM UTC-4, Antoine O wrote:
>
> I agree, the code is good but dates are not formatted as i'd like ( 
> 'Y,M,d,H'). In fact the error comes from the second property ( 
> chart.draw(data, {  
>     hAxis: {  
>         format: 'Y,M,d,H';  
>     }  
>
> });  ) 
> I tried it and Firebug (in the google visualisation playground) answered 
> the error i quoted before. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/AI43vd6lWj4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to