I have a small dancer application which serves up some HTML (including the javascript to call the google charts API) and for other URLs queries a database and returns the da
I was running into same problem and above solution did not work. After searching for hours I found following post and the solution in there worked.
https://groups.google.com/forum/#!msg/google-visualization-api/SCDuNjuo7xo/ofAOTVbZg7YJ
Do not include "new" in the json string so it will be just: "Date(2012, 1, 08, 09, 32, 0)"
JSON does not support datetime as a data types. But according to Google's documentation, you can just send a string with this format:
JSON does not support JavaScript Date values (for example, "new Date(2008,1,28,0,31,26)"; the API implementation does. However, the API does now support a custom valid JSON representation of dates as a string in the following format: Date(year, month, day[,hour, minute, second[, millisecond]]) where everything after day is optional, and months are zero-based.
Google Chart Tools Datasource Protocol
just to clarify: you should write the cell value as a string that looks like that: Date(year, month). for your example:
{"rows":[{"c":[{"v":"Date(year, month)"},{"v":"2095"}]}],"cols":[{"type":"datetime","label":"DTU"},{"type":"number","label":"COUNT"}]}
hope that helps, and correct for you as i'm using it in php and not perl