You should not have two calls to google.load, combine them into one.
Change this:
google.load('visualization', '1', {packages:['table']});
google.load("visualization", "1", {packages:["corechart"]});
to this:
google.load('visualization', '1', {packages:['table', 'corechart']});
Also, the callback should not contain a document ready call, as the API can
finish loading after document ready fires, and so the charts would never be
drawn. Change this:
google.setOnLoadCallback(function(){
$(document).ready(function(){ //code for my charts });
});
to this:
google.setOnLoadCallback(function(){
//code for my charts
});
On Tuesday, February 4, 2014 11:27:28 AM UTC-5, Sudhir Kesharwani wrote:
>
> It was failing to identify google.Visualization as a valid function.
>
> On Monday, 3 February 2014 16:28:00 UTC-6, asgallant wrote:
>>
>> Can you post some example code that generates that error?
>>
>> On Monday, February 3, 2014 5:15:44 PM UTC-5, Sudhir Kesharwani wrote:
>>>
>>> I frequently come across following error:
>>>
>>> Webpage error details
>>>
>>> User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64;
>>> Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
>>> 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
>>> Timestamp: Mon, 3 Feb 2014 22:13:45 UTC
>>>
>>>
>>> Message: Function expected
>>> Line: 1275
>>> Char: 48
>>> Code: 0
>>> URI:
>>> https://www.google.com/uds/api/visualization/1.0/950a5d78e27fa6645530230567434bd0/format+en,default+en,ui+en,table+en.I.js
>>>
>>>
>>> On Monday, 3 February 2014 13:33:04 UTC-6, Sudhir Kesharwani wrote:
>>>>
>>>> Jon,
>>>>
>>>> Recently I have started facing similar issues on my charts. Some times
>>>> the API won't load at all and the charts break. If i refresh the page
>>>> next
>>>> time, it comes back as normal.
>>>>
>>>> We have same code in lots of solutions but we never faced such issues.
>>>>
>>>> Any idea if this might be related to the issue you found?
>>>>
>>>> On Tuesday, 28 January 2014 09:02:27 UTC-6, [email protected] wrote:
>>>>>
>>>>> Ah, no need to post code. We tracked down the problem. As we've been
>>>>> making more frequent improvements to Google Charts, we've run into a
>>>>> configuration problem where some servers in our datacenters are updated
>>>>> before others, and that discrepancy can occasionally lead to errors like
>>>>> what you're seeing.
>>>>>
>>>>> We'll fix this soon. Sorry for the inconvenience!
>>>>>
>>>>> Jon
>>>>>
>>>>>
>>>>> On Mon, Jan 27, 2014 at 7:20 PM, Jon Orwant <[email protected]> wrote:
>>>>>
>>>>>> Google Charts is working fine. Can you post the code that led to the
>>>>>> errors you're seeing?
>>>>>>
>>>>>> Jon
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 27, 2014 at 6:16 PM, <[email protected]> wrote:
>>>>>>
>>>>>>> All of the sudden today I started getting error messages today on
>>>>>>> google charts html pages.
>>>>>>>
>>>>>>> One or more participants failed to draw()×
>>>>>>>
>>>>>>> h.sn is not a function×
>>>>>>>
>>>>>>> I'm sure these pages worked previously.
>>>>>>>
>>>>>>> Anyone else see this today (about 3pm Pacific time?)
>>>>>>>
>>>>>>> --
>>>>>>> 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
>>>>>>> http://groups.google.com/group/google-visualization-api.
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.