That should format the tooltips, but it won't affect the axis. You have to
set hAxis.format option to "d/M/y" to get the date format right in the axis.
On Tuesday, October 16, 2012 3:44:07 AM UTC-4, cmallet wrote:
>
> It's works !
>
> Realy thanks for this form : $date[1] = $date[1] - 1; // subtract 1 to
> get the zero-indexed month (required for javascript
>
>
> But, how format date in short format ?
>
> I use :
> var formatter_short = new google.visualization.DateFormat({formatType:
> 'short'});
> formatter_short.format(data, 0);
>
> I place it between DataTable declaration & draw déclaration, but Chart
> give always : (exemple)-> sept 8, 2012.
>
> For me, ideal format is : 8/9/12 (day/month/year), That is possible ?
>
>
> otherwise, thanks for your help.
>
>
--
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/-/Lo81s0uB6CsJ.
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.