Hi Luis, Thanks for your update. By replacing all the separate calls to google.charts.load with one call in the head, you avoided the problem that used to exist, until I hopefully have fixed it. It should now work as you had it before, with multiple separate calls to google.charts.load.
You can still only use one version of Google Charts in each document, by the way, in case anyone is getting ideas otherwise. The version specified on the first call of google.charts.load will be used thereafter, and only missing packages will be loaded before proceeding with the callbacks and any subsequent google.charts.load calls. On Mon, Jul 10, 2017 at 9:52 AM, Luis Rito <[email protected]> wrote: > Hello Daniel, > > It works very fine now, with no problems at all. I just had to put > google.charts.load('current', {'packages':['corechart', 'controls']}); on > the head of the web page instead of putting on every javascript file. > Otherwise only the first chart would load. Thank you very much. > > Kind regards, > > Luis Rito > > > 2017-07-07 19:07 GMT+01:00 'Daniel LaLiberte' via Google Visualization API > <[email protected]>: > >> I have fixed the problem with multiple google.charts.load() calls (which >> was loading all the packages multiple times). I am very surprised no one >> has noticed many more serious problems. >> >> So I am wondering if this fix will affect your stack limit problem. >> >> On Fri, Jul 7, 2017 at 11:37 AM, Luis Rito <[email protected]> wrote: >> >>> Hello Daniel, >>> >>> If I try google.charts.load('45') or google.charts.load('45.1') instead >>> of 'current', I get the following messages: >>> - One or more participants failed to draw(). >>> - this G.H. is not a function. >>> >>> Ok, if you get to a solution, could please let me know? I am not in a >>> hurry as the site is not online. I am just building it and it is far away >>> from being complete. I don't even know if I want to put this online. >>> >>> Kind regards and thanks for the help, >>> >>> Luis Rito >>> >>> >>> >>> 2017-07-07 16:07 GMT+01:00 'Daniel LaLiberte' via Google Visualization >>> API <[email protected]>: >>> >>>> That's a huge attachment. >>>> >>>> It appears that calling google.charts.load on previously loaded >>>> packages still causes them to be loaded again, by adding more script tags, >>>> even though they are loaded over the network only once (since they are >>>> cacheable). This was not as intended, since this causes the loaded scripts >>>> to be executed more than once, and this likely will cause problems with the >>>> state of the code. >>>> >>>> I'm not sure this is behind the stack overflow problem you are seeing, >>>> but I will be investigating it nevertheless. >>>> >>>> Meanwhile, can you try loading '45' or '45.1' instead of 'current' ? >>>> >>>> On Fri, Jul 7, 2017 at 9:30 AM, Luis Rito <[email protected]> wrote: >>>> >>>>> Hello Daniel, >>>>> >>>>> Please find attached a folder with the web page saved. >>>>> >>>>> Kind regards, >>>>> >>>>> Luis Rito >>>>> >>>>> >>>>> 2017-07-07 13:03 GMT+01:00 'Daniel LaLiberte' via Google Visualization >>>>> API <[email protected]>: >>>>> >>>>>> I can't use a php file, but I looked your code over and I don't see >>>>>> anything obviously wrong. >>>>>> >>>>>> If you can't give us the URL for the page, then save the page in the >>>>>> browser, complete with its loaded scripts. >>>>>> >>>>>> If the problem is that you can't get that browser page because your >>>>>> server fails with the stack limit error when it is generating the output, >>>>>> then that would be a problem in your php code, and we can't help with >>>>>> that. >>>>>> >>>>>> On Fri, Jul 7, 2017 at 6:43 AM, Luis Rito <[email protected]> wrote: >>>>>> >>>>>>> Hello Daniel, >>>>>>> >>>>>>> Thanks for the reply. >>>>>>> >>>>>>> I am sending in attachment the php file and the javascript file >>>>>>> where it is loaded (the javascript file is the FDAXquote_and_trade.php >>>>>>> file, *I had to change the file extension to send it by email. >>>>>>> Please change the file extension to .js*). >>>>>>> It is a page that is still in construction, so it is not >>>>>>> yet visually well organised. >>>>>>> This javascript file with the Google Chart API code is loaded on a >>>>>>> div with an id="FDAX_quote_and_trade_chart". >>>>>>> The chart is not visible when the page is loaded. It will be visible >>>>>>> only after clicking in "FDAX (DAX 30)" and then in an arrow button to >>>>>>> slide >>>>>>> between a table and the other charts. >>>>>>> >>>>>>> Kind regards, >>>>>>> >>>>>>> Luis Rito >>>>>>> >>>>>>> >>>>>>> 2017-07-07 4:49 GMT+01:00 'Daniel LaLiberte' via Google >>>>>>> Visualization API <[email protected]>: >>>>>>> >>>>>>>> Hi Luis, >>>>>>>> >>>>>>>> If you can point us at a page demonstrating the problem, that will >>>>>>>> allow us to look into it. >>>>>>>> >>>>>>>> On Thu, Jul 6, 2017 at 9:48 PM, Luis Rito <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hello everyone. >>>>>>>>> >>>>>>>>> I've seen that some developers already experienced the same >>>>>>>>> problem as I am currently. >>>>>>>>> >>>>>>>>> When I try to load a Line Chart with Google Charts API, I receive >>>>>>>>> the error "Maximum call stack size exceeded". >>>>>>>>> The DataTable is an array of 4 columns and more than 3000 rows and >>>>>>>>> constantly growing. I only get this error when I try to load a chart >>>>>>>>> with >>>>>>>>> dashboard controls. I don't get this error when loading any other >>>>>>>>> charts >>>>>>>>> without dashboard controls. >>>>>>>>> I use a web server installed on my PC (XAMPP). When I try to run >>>>>>>>> the script on an online editor like W3Schools ( >>>>>>>>> https://www.w3schools.com/), the script runs without any problem. >>>>>>>>> >>>>>>>>> Anyone knows how to deal properly with this issue? >>>>>>>>> Thank you very much in advance. >>>>>>>>> >>>>>>>>> Kind regards, >>>>>>>>> >>>>>>>>> Luis Rito >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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 google-visualization-api+unsub >>>>>>>>> [email protected]. >>>>>>>>> To post to this group, send email to >>>>>>>>> [email protected]. >>>>>>>>> Visit this group at https://groups.google.com/grou >>>>>>>>> p/google-visualization-api. >>>>>>>>> To view this discussion on the web visit >>>>>>>>> https://groups.google.com/d/msgid/google-visualization-api/a >>>>>>>>> ccd61fd-abb1-46b4-82e0-cae552887826%40googlegroups.com >>>>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/accd61fd-abb1-46b4-82e0-cae552887826%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] <[email protected]> 5CC, Cambridge MA >>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to a topic in >>>>>>>> the Google Groups "Google Visualization API" group. >>>>>>>> To unsubscribe from this topic, visit >>>>>>>> https://groups.google.com/d/topic/google-visualization-api/i >>>>>>>> igCT7a-MFk/unsubscribe. >>>>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>>>> [email protected]. >>>>>>>> To post to this group, send email to google-visualization-api@googl >>>>>>>> egroups.com. >>>>>>>> Visit this group at https://groups.google.com/grou >>>>>>>> p/google-visualization-api. >>>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/google-visualization-api/C >>>>>>>> AOtcSJMbWGFCB90kB3VAd33CLYrHrCb762tpv1bkFRPTMp52Kw%40mail.gmail.com >>>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMbWGFCB90kB3VAd33CLYrHrCb762tpv1bkFRPTMp52Kw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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 google-visualization-api+unsub >>>>>>> [email protected]. >>>>>>> To post to this group, send email to google-visualization-api@googl >>>>>>> egroups.com. >>>>>>> Visit this group at https://groups.google.com/grou >>>>>>> p/google-visualization-api. >>>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/google-visualization-api/C >>>>>>> AE6ASn_kyj4dmVcRUJ%2BBZA0hWqTv5X1fO6__TVn-72BMDp%2B9Gg%40mai >>>>>>> l.gmail.com >>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAE6ASn_kyj4dmVcRUJ%2BBZA0hWqTv5X1fO6__TVn-72BMDp%2B9Gg%40mail.gmail.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] <[email protected]> 5CC, Cambridge MA >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to a topic in >>>>>> the Google Groups "Google Visualization API" group. >>>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>>>>> pic/google-visualization-api/iigCT7a-MFk/unsubscribe. >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> [email protected]. >>>>>> To post to this group, send email to google-visualization-api@googl >>>>>> egroups.com. >>>>>> Visit this group at https://groups.google.com/grou >>>>>> p/google-visualization-api. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/google-visualization-api/C >>>>>> AOtcSJNotJFuoT0N6TpTzrZeTRdqMHneNKHNv1T5DYEXiQ2arg%40mail.gmail.com >>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNotJFuoT0N6TpTzrZeTRdqMHneNKHNv1T5DYEXiQ2arg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>>> 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 google-visualization-api@googl >>>>> egroups.com. >>>>> Visit this group at https://groups.google.com/grou >>>>> p/google-visualization-api. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/google-visualization-api/C >>>>> AE6ASn8Tjb1Yo7Wz5V1cok8b4F0Ov%3DrveRE54RhYAo133M2jsQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAE6ASn8Tjb1Yo7Wz5V1cok8b4F0Ov%3DrveRE54RhYAo133M2jsQ%40mail.gmail.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] <[email protected]> 5CC, Cambridge MA >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Google Visualization API" group. >>>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>>> pic/google-visualization-api/iigCT7a-MFk/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To post to this group, send email to google-visualization-api@googl >>>> egroups.com. >>>> Visit this group at https://groups.google.com/grou >>>> p/google-visualization-api. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/google-visualization-api/CAOtcSJMRjYvwEg%2BSx7DvZyZbnxYd >>>> 7x0jhBwcVLZi9UxTLy9_0g%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMRjYvwEg%2BSx7DvZyZbnxYd7x0jhBwcVLZi9UxTLy9_0g%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> 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 google-visualization-api@googl >>> egroups.com. >>> Visit this group at https://groups.google.com/grou >>> p/google-visualization-api. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/google-visualization-api/CAE6ASn_3Fcv598aL1D2p7FdTnb70R6 >>> TQ6Q7wt1sgVT5aKPnAPw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/google-visualization-api/CAE6ASn_3Fcv598aL1D2p7FdTnb70R6TQ6Q7wt1sgVT5aKPnAPw%40mail.gmail.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] <[email protected]> 5CC, Cambridge MA >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/google-visualization-api/iigCT7a-MFk/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to google-visualization-api@googl >> egroups.com. >> Visit this group at https://groups.google.com/grou >> p/google-visualization-api. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/google-visualization-api/CAOtcSJOtXT_wtC%2B61zzoEE-ab- >> jHYGNCp-ZnssfD6E6nO_pc1Q%40mail.gmail.com >> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOtXT_wtC%2B61zzoEE-ab-jHYGNCp-ZnssfD6E6nO_pc1Q%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 google-visualization-api@ > googlegroups.com. > 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/CAE6ASn89YZfNLvG3HS%2B9U_ > o51LtY%2BuXX2QwBveC0f5-%3D_Lc8aw%40mail.gmail.com > <https://groups.google.com/d/msgid/google-visualization-api/CAE6ASn89YZfNLvG3HS%2B9U_o51LtY%2BuXX2QwBveC0f5-%3D_Lc8aw%40mail.gmail.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] <[email protected]> 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/CAOtcSJP-m27NRqMhj%3DnooQdcgi71qyBo46OzUGu%3DN%2BWnLhzAag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
