Hi,

Oh sorry about that, I believe it is the loading crashing; as I have tried 
to give long delay to the javascript and let it try to load, but 
"google.visualization" would always be undefined. (google = { charts: {} })

On Tuesday, 8 September 2015 13:07:34 UTC+1, Daniel LaLiberte wrote:
>
> Hi Thomas,
>
> First, google.charts.load() always uses https now.
>
> My question was whether you can tell what is loaded by wkhtmltopdf after 
> google.charts.load() is called?  If it loads the packages fine but just 
> doesn't call the callback, then the problem is most likely that the loader 
> doesn't know everything has finished loading.
>
> On Tue, Sep 8, 2015 at 4:28 AM, Thomas Fantou <[email protected] 
> <javascript:>> wrote:
>
>> Hi Daniel,
>>
>> Well we haven't seen any problems with the rest. Also, like I said, the 
>> loading works fine with the non-frozen versions. 
>> I am not sure I've followed the issue about the loader attempting to load 
>> the same scheme as the page, but since the request is not done through a 
>> web browser, would that make a difference?
>>
>> On Monday, 7 September 2015 19:53:56 UTC+1, Daniel LaLiberte wrote:
>>>
>>> Hi Thomas,
>>>
>>> I can't imagine what might be happening when the Google Charts frozen 
>>> v41 is loaded view wkhtmltopdf, but it sounds like that tool doesn't work 
>>> with the dynamic loading mechanism that we depend on.  Does anything get 
>>> loaded beyond the loader itself?
>>>
>>> On Mon, Sep 7, 2015 at 10:52 AM, Thomas Fantou <[email protected]> 
>>> wrote:
>>>
>>>> Hi Daniel,
>>>>
>>>> We are using the Google Chart API, and rendering our html view with 
>>>> wkhtmltopdf tool (converter html to pdf). 
>>>> It has always been working fine even now with the last stable version, 
>>>> however there is a strange behaviour with the new Frozen version; As far 
>>>> as 
>>>> I have been able to debug, the google.charts.load() method never returns. 
>>>> (Callback method is never triggered/google.visualization.DataTable() is 
>>>> 'undefined')
>>>>
>>>> The frozen version works with our browsers, but not with the third 
>>>> party tool as stated above. I am not sure how I can investigate further; 
>>>> is 
>>>> there any reasons that would ring a bell about this ? (e.g. if platform 
>>>> isn't a browser, the .load() will be stuck somewhere?)
>>>>
>>>> Thanks,
>>>> Thomas
>>>>
>>>>
>>>> On Tuesday, 28 July 2015 13:11:12 UTC+1, Daniel LaLiberte wrote:
>>>>
>>>>> *Introducing Frozen Google Charts*
>>>>>
>>>>> When we push out new releases of Google Charts, some of the changes 
>>>>> are big, like entirely new chart types, but other changes are small, like 
>>>>> enhancements to the appearance or behavior of existing charts.  
>>>>>
>>>>> Many Google Chart creators fine-tune the look and feel of their charts 
>>>>> until it's exactly what they want. Some of those users might feel more 
>>>>> comfortable knowing that their charts will never change, regardless of 
>>>>> what 
>>>>> improvements we make in the future.  For those users, we're proud to 
>>>>> announce Frozen Google Charts.  
>>>>>
>>>>> To load a frozen version, you must make some small changes in how you 
>>>>> load the Google Charts packages.  For example, here is the usual way 
>>>>> of loading the stable version and drawing a chart:
>>>>>
>>>>> <script type="text/javascript" 
>>>>>
>>>>> src="https://www.google.com/jsapi";></script>
>>>>>
>>>>> <script type="text/javascript">
>>>>>
>>>>>    google.load('visualization', '1', {packages: ['corechart']});
>>>>>
>>>>>    google.setOnLoadCallback(drawChart);
>>>>>
>>>>> </script>
>>>>>
>>>>> You'll need to change your code to be like this (changes highlighted 
>>>>> in bold):
>>>>>
>>>>> <script type="text/javascript" 
>>>>>
>>>>>             src="*https://www.gstatic.com/charts/loader.js* 
>>>>> <https://www.gstatic.com/charts/loader.js>"></script>
>>>>>
>>>>> <script type="text/javascript">
>>>>>
>>>>>    *google.charts.load(**'41'**,* {packages: ['corechart']});
>>>>>
>>>>>    *google.charts.setOnLoadCallback*(drawChart);
>>>>> </script>
>>>>>
>>>>>
>>>>> Note that when you call google.charts.load(), you should not include 
>>>>> the ‘visualization’ parameter, and the version number is a string.  
>>>>> Only version ‘41’ is supported at this time, which corresponds to the 
>>>>> current stable release, and additional frozen versions will be 
>>>>> announced as we push out each new stable release.  More details about 
>>>>> using the frozen version loader will be available here 
>>>>> <https://google-developers.appspot.com/chart/interactive/docs/library_loading_enhancements>
>>>>> .
>>>>>
>>>>>
>>>>> When you use a frozen version of Google Charts, all charts and 
>>>>> features should work the same as for the stable version it was created 
>>>>> from.  But there are two minor, though important, limitations with 
>>>>> loading frozen versions, which we expect to resolve in the near 
>>>>> future.
>>>>>
>>>>>    1. You can only call google.charts.load() one time.  You can 
>>>>>    instead list all the packages that you'll need in one call, so there 
>>>>> is 
>>>>>    usually no need to make separate calls. 
>>>>>    2. If you are using a ChartWrapper, you must explicitly load all 
>>>>>    the packages you'll need rather than relying on the ChartWrapper to 
>>>>>    automatically load them for you. 
>>>>>
>>>>> We expect that frozen versions will remain available indefinitely, 
>>>>> though we may retire frozen versions that have security concerns.  We 
>>>>> will 
>>>>> typically not provide support for frozen versions, except to suggest 
>>>>> upgrading to newer versions.
>>>>>
>>>>> Even if you don't plan to use the frozen version 41, it would help us 
>>>>> if you could try it now with your charts and please let us know if you 
>>>>> experience any problems.
>>>>>
>>>>> -- 
>>>>> Daniel LaLiberte 
>>>>> <https://plus.google.com/100631381223468223275?prsrc=2>  - 
>>>>> 978-394-1058
>>>>> [email protected]   5CC, Cambridge MA
>>>>> [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/5eb56be5-e779-489e-bdd5-1ae727e4e4c1%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-visualization-api/5eb56be5-e779-489e-bdd5-1ae727e4e4c1%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>
>>>   - 978-394-1058
>>> [email protected]   5CC, Cambridge MA
>>> [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] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/b87fdff7-4572-4757-9fee-e891bb920cc0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/b87fdff7-4572-4757-9fee-e891bb920cc0%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> 
>  - 978-394-1058
> [email protected] <javascript:>   5CC, Cambridge MA
> [email protected] <javascript:> 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/d6c2973e-397d-4a55-966f-ada43f3b8a9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to