"Table has no columns" Google Visualization Table ChartWrapper

103 views
Skip to first unread message

Alina

unread,
Apr 30, 2020, 4:47:31 AM4/30/20
to Google Visualization API
Hello,

For three weeks we have had loading problems with the used ChartWrapper tables in javascript.
Until now everything worked well, but currently the problem is persistent and occurs almost always and users have to load the corresponding pages several times, which implies many inconveniences when they working with tables.

Have there been any changes lately to any Google Visualization library, or what is the problem that can cause these errors?

We are using this libraries :

<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script>google.load('visualization', '1.0', {'packages':['controls']});</script>

How can we solve it?

Thank you.

Daniel LaLiberte

unread,
Apr 30, 2020, 11:16:29 AM4/30/20
to Google Visualization API
Hi Alina,

We plan to redirect all jsapi requests to the new loader, which you can upgrade to directly by following the instructions at:   https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code

At this time, we are redirecting 50% of jsapi requests, which gives you time, in your case, to see your old charts before they might be broken entirely.

Why your ChartWrapper use is failing when relying on the redirect, I don't know, but I am curious to learn the details.  Most other uses are working fine.   We would need to see more of your code to figure out what is happening.


--
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/3612c441-67b8-40d9-889d-4ce33c07cc27%40googlegroups.com.


--

Dianna Whitt

unread,
May 20, 2020, 7:14:23 PM5/20/20
to Google Visualization API
We are having the same problem. Charts were failing intermittently but frequently you could refresh and they would display. But as of yesterday, we are no longer able to display them.

On Chrome the error is: Uncaught TypeError: Cannot read property 'ChartWrapper' of undefined
On Firefox the error is: Typeerror: google.visualization is undefined.

The line failing is the call to google.visualization.ChartWrapper. I have verified that the data being passed is valid JSON data.

I tried to change from jsapi to www.gstatic.com/charts/loader.js but it makes no difference.

Any assistance would be appreciated,
Dianna
 

Daniel LaLiberte

unread,
May 21, 2020, 12:27:39 PM5/21/20
to Google Visualization API
If you are using the 'autoload' parameter, then the problem is very likely that you must now use strict JSON for the value of that parameter.  This used to work, but it was insecure, so now we process the parameter with JSON.parse. 

It might be easier for you to just replace the use of the autoload parameter with a couple lines of code that do the equivalent, using google.charts.load and google.charts.setOnLoadCallback. 

If you are getting an error about google.visualization being undefined, then the loader did not finish loading the library before you started depending on it.  That's what the setOnLoadCallback is for.  

Alina

unread,
Jun 25, 2020, 4:05:35 PM6/25/20
to Google Visualization API
Thank you so much for your response Daniel, it was simple we just change the new libraries and all it works. 

I take advantage of the thread of this message to ask you about an error that we are having lately with google drive downloads in web applications. 
I do not know where can i post it, because it is quite maddening because of i can not find any solution for this, and maybe this issue sounds to you.

We  are working with multiple google spredsheets in app script applicactions, downloading and export file and until three weeks ago it seems to work perfectly, but not it give us an empty tab when we click de button download.  
 
The code is so simple: 


Initially it does not do anything, but when you refresh the page twice, it download perfeclty. So, we do not understand where could be the problem, and why the first time it not works, and only in the refresh do. 

We have read that this is a generalized sandbox issue, because of the allow downloads attribute does not exist anymore. 

We have tried in different way, llike:

<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-downloads-without-user-activation " src="hhttps://drive.google.com/uc?export=download&confirm=no_antivirus&id=" style="border: 0; width:130px; height:20px;"></iframe>

Maybe could be related to our web server configuration, with Content-Security-Policy like i saw in some posts, but i`m not sure about that.
Can we set up this configuration in some way, in Google Web App script?  This is related to entire domain, or maybe just our Google script site particullary?

Do you know something about that? Are there some groups of this kind of issue or topic?

Thank you so much, i  will appreciate your help!

1.PNG
2.PNG

Daniel LaLiberte

unread,
Jun 25, 2020, 7:06:11 PM6/25/20
to Google Visualization API
Glad to hear that you got the new loader and library to work.  However, it sounds like you are using AppsScript to use Google Charts.  This has a different way of loading the library and interfacing with it.  (Spreadsheets also have their own implementation of charts that look like Google Charts, but are not.)  I don't know what your downloads are about, but you'll have to ask in a forum closer to the AppsScript community.  Sorry I can't be of more help.

--
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.
Reply all
Reply to author
Forward
0 new messages