n.getFullYear is not a function

33 views
Skip to first unread message

gurpreet bajwa

unread,
Feb 11, 2019, 5:45:27 PM2/11/19
to Google Visualization API
Hi,

I am reading a csv and trying to plot a calendar graph.

The csv format is as follows,

Date,Count
'Date(934875)',38024


and the data's options have been set to =>   options['csvColumns'] = ['datetime', 'number'];

I have also tried 'timeofday', but even that doesn't work for me.

Please suggest, thank you!

Daniel LaLiberte

unread,
Feb 14, 2019, 2:47:19 PM2/14/19
to Google Visualization API
Hi Gurpreet,

It appears the string Date() notation is not supported when you read in data via csv.  At best, you will have to first convert the result of reading the csv into an Array of Arrays and feed that to google.visualization.arrayToDataTable() where it will be digested as expected.  

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/97ad8c57-54f6-40d8-9704-1b4030591f9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages