Error with zoomStartTime and AnnotatedTimeLine
- by user973025
I'm a bit of a beginner with Javascript, but last month I had a working Google chart linked to a Google Docs file, which uses a start date for the graph at 90 days before the current date.
I checked the page today and in Chrome I get the message "Object # has no method 'getTime'", and in Firefox I get the message "b.zoomStartTime[y] is not a function". Both stop the graph from loading.
I have simplified the code to help me with the error, but I'm not getting anywhere... Here's the code:
<script type="text/javascript">
var oldDate = new Date();
oldDate.setDate(oldDate.getDate() - 90);
</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js">
{
"dataSourceUrl": "//docs.google.com/spreadsheet/tq?key=0AkQH6d2CUv_qdDhwd3gtZzdTVFlNX3AwX2xUSUVuclE&transpose=0&headers=-1&range=A1%3AB2436&gid=0&pub=1",
"options": {
"zoomStartTime": oldDate,
"width": 650,
"height": 371
},
"chartType": "AnnotatedTimeLine",
}
</script>
Any ideas would be hugely appreciated.
David.