You'll probably want that in two places:
1) a DateFormatter for the domain column:
var dateFormatter = new google.visualization.DateFormat({pattern: 'Y,M,d,H'}
);
dateFormatter.format(data, 0);
2) formatting the hAxis of the chart:
chart.draw(data, {
hAxis: {
format: 'Y,M,d,H';
}
});
The first insures that the dates appear correctly in the tooltips, while
the second makes sure the axis values are formatted correctly.
On Tuesday, June 26, 2012 4:51:24 AM UTC-4, Antoine O wrote:
>
> OK i read all the docs you reffered to.
> But i don't really see where i have to place the code defining the date
> format ( in my case {format:'Y,M,d,H'} )
>
--
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/-/5OE-cpmh0P0J.
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.