Hi,

I've been struggling for days to get dates working with a chart and have 
finally come to the (possibly erroneous) conclusion that there's a 
difference between the implementation of dates in the DataTable function 
and in the addRows function.

This JSFiddle hopefully shows what I mean: 
https://jsfiddle.net/fiskerton/vc4o0710/1/

If a DataTable is created with both columns and rows, passing in a 
JSON.parse'd string with a date value in the format 'Date(YYYY,MM,DD)' 
works fine. If that same format is passed to addRows, the console throws 
the error: 'Uncaught Error: Type mismatch. Value Date(YYYY,MM,DD) does not 
match type date in column index 1. I haven't found any other format that 
successfully takes a string containing a date and gets it to work with 
addRows - e.g. 'new Date(YYYY,MM,DD' fails with same error.

Is there something I've missed?

Thanks.

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/6294cb99-9812-471b-87fc-7b040a6972c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to