Many thanks that work now. Thing is it has worked like that wrong way for the last 2 months, but I guess the new release exposed the error.
Like I say I am not a js coder - just s copy-paster Thanks again On Thursday, 8 June 2017 13:55:17 UTC+1, Daniel LaLiberte wrote: > > Hi Iain, > > You appear to be trying to use both the old loader and new loader at the > same time. That is bound to fail since incompatible code will be loaded by > each. > > So, I would recommend you only use the new loader. Change your > google.load and google.setOnLoadCallback calls to google.charts.load and > google.charts.setOnLoadCallback. See the instructions here: > https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code > > On Thu, Jun 8, 2017 at 5:06 AM, Iain Gray <[email protected] <javascript:>> > wrote: > >> Yes I am in the same boat (though a very inexperienced js developer - I >> simply followed the docs. >> >> All my charts are working fine as I do have setOnLoadCallback after load, >> except the page that has 2 charts - 1 table and 1 timeline: >> >> >> <script type="text/javascript"> >> google.load('visualization', '1.0',{'packages':['timeline', 'table']}); >> google.setOnLoadCallback(drawChart); >> google.charts.setOnLoadCallback(drawTable); >> >> >> This fails as of this morning >> >> On Wednesday, 7 June 2017 11:43:00 UTC+1, Julian Hullis wrote: >>> >>> Hi, >>> >>> I've started getting the following error across all applications using >>> the charts api. >>> >>> 'Uncaught Error: Must call google.charts.load before >>> google.charts.setOnLoadCallback at Object.google.G.K.T.jl [as >>> setOnLoadCallback] (loader.js:224)'. >>> >>> This includes a published app (hosted internally) that hasn't been >>> updated for two weeks. >>> >>> Has there been an update to the api in the last 12 hours that could be >>> causing this? >>> >>> Thank you. >>> >>> >>> >>> google.charts.setOnLoadCallback(function () { >>> angular.bootstrap(document.body, ['opsRiskApp']); >>> }); >>> >>> google.charts.load('43', { packages: ['corechart'] }); >>> >>> >>> -- >> 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/a97a1efe-4f3e-4bda-b81d-1f3a23bf86dc%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-visualization-api/a97a1efe-4f3e-4bda-b81d-1f3a23bf86dc%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/fa41d553-3e69-4146-a017-ad89d57a85da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
