Ah ha! Thanks Domingo.  It appears that the Google Charts documentation
pages also have some use of the autoload parameter with incorrectly
formatted JSON.  The solution is that all uses of the autoload parameter
must be changed to use only strict JSON, and if not, you will see a JSON
parsing error.

It is possible you could see JSON parsing errors for other reasons as well,
but the autoload parameter is a big one.

This is new, and we can't easily parse the autoload parameter as non-strict
JSON, so it would be better to make the change now.  Alternatively, you can
stop using the autoload parameter entirely, and instead replace it with an
equivalent call of google.charts.load(), maybe including the 'callback'
setting if you need that.

I hope this won't be a huge problem for people to fix.  Let us know if
there is a significant reason to delay this change.


On Wed, May 20, 2020 at 1:04 PM Domingo Pichardo <pichardo.domi...@gmail.com>
wrote:

> Our google visualization tools also stopped loading this morning failing
> to load the loader.js file.
> I see the same behavior on developer.google.com/chart page.
>
> Does anyone know if this is something temporary or if we should start
> looking at updating our implementations.
>
> Thanks.
>
> On Wednesday, May 20, 2020 at 9:39:43 AM UTC-4, Claudio wrote:
>>
>> Hi,
>> I'm managing some old sites, done by others, that use the Google Chart
>> library to draw Tables and Charts.
>> Charts still work, but the Tables are not working anymore.
>> I think something changed this month because some days ago I'm sure the
>> sites were working.
>> These are sites that have been running for 5-6 years.
>> Because the problem is on all sites and on many of them the data have not
>> changed this month I think that the problem is with the version of the
>> library.
>>
>>
>> I can see that the code to load the library is:
>>
>> google.load('visualization', '1.0', {'packages':['controls',
>> "corechart"]});
>> google.setOnLoadCallback(drawDashboard);
>>
>> And I have this error:
>>
>> --> Table has no columns
>>
>> The loaded version of the library is 48.1.
>>
>>
>> Reading the Google documentation I've seen that I can load another
>> version of the library with this code:
>>
>> google.load('visualization', '47', {'packages':['controls',
>> 'corechart']});
>> google.setOnLoadCallback(drawDashboard);
>>
>> but with this version I have the  same error: "Table has no columns".
>>
>> With the version 46  I can see the rows of the tables but the filter of
>> the table generates the error:
>> jsapi_compiled_format_module.js:45 Uncaught TypeError:
>> Array.prototype.map called on null or undefined
>>
>> With the version 45.2 I can see the rows of the tables but I have the
>> error:
>> "Maximum call stack size exceeded".
>>
>>
>> So the problems are:
>>
>> - Why the previous versions of the library doesn't work?
>>
>> - The right way to load the library is with the command:
>>
>> google.load('visualization', '47', {'packages':['controls',
>> 'corechart']});
>> or the command:
>> google.charts.load('47', {packages: ['controls', 'corechart']}); ?
>>
>>
>> Thank you for your help
>>
>> Claudio Battaglino
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/1b05aa39-1bc1-44f0-9223-2189382843a6%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/1b05aa39-1bc1-44f0-9223-2189382843a6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   Cambridge MA

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOvoKPm9Df7Bducz5FyARyA-_sHHryGCUpOgPkBrpFnew%40mail.gmail.com.

Reply via email to