My JS for charts in my application suddenly stopped working. Here's a
sample:
data = new google.visualization.DataTable();
data.addColumn('string', 'A');
data.addColumn('string', 'B');
data.addColumn('number', 'C');
data.addColumn('number', 'D');
data.addColumn('string', 'E');
data.addColumn('string', 'F');
data.addRows(chartData);
data.sort({ column: 2, desc: true });
data.addColumn({ 'type': 'string', 'role': 'tooltip', 'p': {
'html': true } });
data.wg.forEach(function (a) {
a.c[6].v = 'G';
});
And the error I get is:
Uncaught TypeError: Cannot read property 'forEach' of undefined
at <anonymous>:11:17
It looks like the response has changed from *data.wg * to *data.Hg *?
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/801c122f-c231-4f6b-abaf-25ec9a6d099a%40googlegroups.com.