sure. My problem may be using Sharepoint for what I understood is that I 
have to load js for sp by loading the document or window, so:

I call google chart library:

google.charts.load("current", 
{packages:["timeline","corechart","bar","gantt"]});

And then I load my sp js libraries:

 $(window).load(function(){
            // Make sure the SharePoint script file 'sp.js' is loaded 
before your
            // code runs.
            SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () {});
            
SP.SOD.executeOrDelayUntilScriptLoaded(retrieveListItems,"sp.js");
    }); 

  /*
   $(document).ready(function(){
            // Make sure the SharePoint script file 'sp.js' is loaded 
before your
            // code runs.
            SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () {});
            
SP.SOD.executeOrDelayUntilScriptLoaded(retrieveListItems,"sp.js");
    }); 
    */

None of both ways does work very fine. In "retrievelistitems" I query the 
data in the sp table and populate the chart data modell and draw the chart.

Using "google.charts.setOnLoadCallback(drawChart);" does not allow me to 
load js sp libraries or I did not find a proper way to do it. 

Do you have a clue how to proceed with that? And sorry for the thread name 
may not be appropiate.

THX.


Am Montag, 9. Januar 2017 14:51:01 UTC+1 schrieb Daniel LaLiberte:
>
> Could you give us the details of how you are doing the loading?  Subtle 
> mistakes could be the cause.  Best to copy enough code here to reproduce 
> the problem, or point us at your web page.
>
> On Mon, Jan 9, 2017 at 8:20 AM, 'Joan Ibanez' via Google Visualization API 
> <[email protected] <javascript:>> wrote:
>
>> Hi,
>>
>> sometimes I have a problem with the loading of google chart library, 
>> because script attempts to execute before (I assume) library is completely 
>> loaded although I am using the proposed methods. Google Chrome performance 
>> is much better than IE but not 100% reliable. Is there another way to 
>> ensure loading before executing?
>>
>> THX!
>>
>> -- 
>> 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] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> https://groups.google.com/group/google-visualization-api.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/b88a9487-1fb5-4510-b999-1b04046c0633%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/b88a9487-1fb5-4510-b999-1b04046c0633%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
> [email protected] <javascript:>   5CC, 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/ee3a42cc-7442-4eaf-ba20-3af980277375%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [visualization-api] Preven... 'Joan Ibanez' via Google Visualization API
    • Re: [visualization-ap... 'Daniel LaLiberte' via Google Visualization API
      • Re: [visualizatio... 'Joan Ibanez' via Google Visualization API
        • Re: [visualiz... 'Daniel LaLiberte' via Google Visualization API
          • Re: [visu... 'Joan Ibanez' via Google Visualization API
            • Re: ... 'Daniel LaLiberte' via Google Visualization API
              • ... 'Joan Ibanez' via Google Visualization API
                • ... 'Daniel LaLiberte' via Google Visualization API

Reply via email to