[visualization-api] Re: problem datatable/json/new Date

2012-10-17 Thread asgallant
You're welcome. On Wednesday, October 17, 2012 4:47:54 AM UTC-4, cmallet wrote: > > Yeah ! > > It's good form me, i'have inderstood this behavior ! > > This tread is finish for me. > > Thanks for your help. > -- You received this message because you are subscribed to the Google Groups "Google

[visualization-api] Re: problem datatable/json/new Date

2012-10-17 Thread cmallet
Yeah ! It's good form me, i'have inderstood this behavior ! This tread is finish for me. 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/

[visualization-api] Re: problem datatable/json/new Date

2012-10-16 Thread asgallant
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; // subt

[visualization-api] Re: problem datatable/json/new Date

2012-10-16 Thread cmallet
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(dat

[visualization-api] Re: problem datatable/json/new Date

2012-10-15 Thread Cedrik Mallet
Thanks for reply. I test that tomorrow. and return ... :) -- 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/-/EDnGpkNunyoJ. To post to

[visualization-api] Re: problem datatable/json/new Date

2012-10-15 Thread asgallant
If you want to use a "date" data type, you have to format the data in a way the API can understand. The API expects dates passed in JSON to be in the form "Date(year, month, day)", so your JSON dates should look like {"v":"Date(2012, 8, 7)"} (javascript months are zero-indexed, so you have to