Another potential cause for this error is if you're passing a string instead of an array to the addRows function. This would be common if you're generating the array some other way and passing it in. In this case you'll need to JSON.parse it, like so:
data.addRows(JSON.parse(dataarray)); Another important note here, if you're generating this array as a string, you must make sure you're using single quotes around the array and double quotes around the string elements inside the array. If you do it the other way around, it won't work. In other words, your string should look like: '[["Jan", 33,42], ["Feb", 9,41], ["Mar", 0,43]]' Not "[['Jan', 33,42], ['Feb', 9,41], ['Mar', 0,43]]" -- 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/862ea949-839d-4e42-aaf9-a42433df2c45%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
