Hi Paul,

I don't understand why you can't call
google.charts.setOnLoadCallback(drawTable) when you want the drawTable
function to be called (once the Google Charts code has been loaded).  How
is this different from when you would use google.load() and
google.setOnLoadCallback()?

On Mon, Aug 24, 2015 at 4:53 PM, Paul Benson <[email protected]> wrote:

> We are using dynamic chart creation, so I can not specify
> "google.charts.setOnLoadCallback(drawTable);" so javascript is failing when
> I try to reference google.visualization.DateTable, or anything else using
> google.visualization....
>
> I am using the google.charts.load() as well as the other changes
> highlighted above.
>
> On Tuesday, July 28, 2015 at 7:11:12 AM UTC-5, 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/de90d1cf-ec12-4f4f-a963-ca1ed450c212%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/de90d1cf-ec12-4f4f-a963-ca1ed450c212%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] <[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/CAOtcSJMLj9R3bLiu3kD6gHYSrsmxNLy0zL0ABwT%2BHYxLOLSBfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to