You need to convert your dates into this format: new Date(year, month, day, 
hour, minute, second).  Months are zero-indexed in javascript, so January 
is 0, February is 1, March is 2, etc.  Your date "20-Mar-13 18:18" would be new 
Date(2013, 2, 20, 18, 18).

On Saturday, March 23, 2013 4:21:27 PM UTC-4, Jan wrote:
>
> I have an Array with data build up in PHP and transferred tot the java 
> script.
>
> *<?PHP **$*graphdata *= "['20-Mar-13 18:18',303.51,300],['20-Mar-13 
> 18:13',303.52,300],['20-Mar-13 18:08',302.48,300] ......continue..." **?>*
> *
> *
> In the drawChart function I call *data.addRows([<?php echo $*graphdata *
> ;?>])* which works well for a discrete axis.
>
> I'd like to convert the data so I can use it to make a continuous axis. How 
> can I convert the $graphdata array so the date-time string is converted 
> into a datetime object?
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to