I don't know why it would have suddenly changed, but it is best to call
google.setOnLoadCallback() only one time since it is not clear what happens
when it is called more than once, perhaps in separate scripts, especially
if the library that you started loading with google.load() is in the
process of being loaded or has already finished loading.  If you need to
have multiple functions be called, then you can wrap the multiple calls in
a single function.   You might want to set up an array of such functions
that you add to for each chart that you are drawing, something like this:
var callbackFunctions = [];

callbackFunctions.push(drawgraphs_46133_11159_24832316219);
function drawgraphs_46133_11159_24832316219 () { ... }

callbackFunctions.push(drawgraphs_46133_11159_18779513343);
function drawgraphs_46133_11159_18779513343 () { ... }

google.setOnLoadCallback(callbackWrapper);

function callbackWrapper() {
  for (var i=0; i < callbackFunctions.length; i++) {
    callbackFunctions[i]();
  }
}


By the way, if you are using the frozen Google Charts loader
(google.charts.load() and google.charts.onLoadCallback()) then you can call
google.charts.onLoadCallback() multiple times before or after the library
has been loaded.


On Mon, Oct 5, 2015 at 12:08 AM, Jean-Rémi Delteil <
[email protected]> wrote:

> Hi Nir,
>
> It seems to me that the google.setOnLoadCallback was not used correctly
> here.
> It's just that it started acting like it should.
>
> This callback is called one time, when the google library are loaded. And
> not when each scripts are loaded.
>
> However, the fact that we cannot use it to know the Googles libs loading
> state is not useful !
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/fb7fda69-9b77-45f0-8969-fe5f73007f98%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMQRgZthCq%3DzrT6QBQEjEFy-rX00jXCq3Rw3khFXCRn9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to