Sudden google.visualization failure

60 views
Skip to first unread message

Steve Wood

unread,
Jun 17, 2020, 11:04:52 AM6/17/20
to Google Visualization API
Suddenly:

google.visualization.arrayToDataTable(my_data);

returns "Cannot read property 'arrayToDataTable' of undefined"

This problem is consistent across all browsers and incognito mode in Chrome.

What can cause this? Is there a version change I need to address?

Daniel LaLiberte

unread,
Jun 17, 2020, 3:05:31 PM6/17/20
to Google Visualization API
Hi Steve,

Are you using the jsapi loader?  The only change recently is that the jsapi loader is being redirected to the new loader.  I bet you are also missing a call to google.setOnLoadCallback, and you have been lucky so far that the jsapi loader was able to load the visualization library quickly, but with the redirect, it takes a bit longer.  

See the instructions for how to update your code to use the new loader directly:

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/8ada262b-d80e-4ef0-91b2-3a1c6943b8c5o%40googlegroups.com.


--

Steve Wood

unread,
Jun 17, 2020, 3:33:47 PM6/17/20
to Google Visualization API
This may be the reason. I am using a utility that load the Google API as a built in feature. When i look at the executed code I do see it loading "the old way". So I will expirement and then submit a bug report to the utility maker to update their UX code.


On Wednesday, June 17, 2020 at 12:05:31 PM UTC-7, Daniel LaLiberte wrote:
Hi Steve,

Are you using the jsapi loader?  The only change recently is that the jsapi loader is being redirected to the new loader.  I bet you are also missing a call to google.setOnLoadCallback, and you have been lucky so far that the jsapi loader was able to load the visualization library quickly, but with the redirect, it takes a bit longer.  

See the instructions for how to update your code to use the new loader directly:

On Wed, Jun 17, 2020 at 11:05 AM Steve Wood <stz...@gmail.com> wrote:
Suddenly:

google.visualization.arrayToDataTable(my_data);

returns "Cannot read property 'arrayToDataTable' of undefined"

This problem is consistent across all browsers and incognito mode in Chrome.

What can cause this? Is there a version change I need to address?

--
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-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages