Hi Anthony, Well, I am happy to hear the delay works for you, but not so happy to verify that it is a timing problem. Maybe I will have to build in a couple automatic retries when the id comes up null, in addition to the retries that it is already doing.
On Tue, Oct 25, 2016 at 11:29 AM, Anthony Milano <[email protected]> wrote: > That looks like it does the trick! Thanks for your help. > > On Mon, Oct 24, 2016 at 7:57 AM, 'Daniel LaLiberte' via Google > Visualization API <[email protected]> wrote: > >> Hi Anthony, >> >> Sorry I didn't respond earlier, but I guess I don't have many more ideas. >> >> >> The error message you are seeing, "Requested map does not exist.", occurs >> when drawing the chart and it hasn't found an id for the map, such that it >> appears the map does not exist. Since it does sometimes exist, it is >> clearly wrong to claim it does not exist. Your code looks fine, but I >> wonder if the geochart code could have some problems that are exposed when >> things are very busy. It could be that your page takes long enough to load >> and render all the charts that this causes some confusion. If so, it might >> be better to wait to render the geochart until a few seconds later. Just >> replace your google.charts.setOnLoadCallback(drawTable37) with >> google.charts.setOnLoadCallback(function() { setTimeout(drawTable37, >> 5000); }); >> >> Hope that helps. >> >> >> On Sat, Oct 22, 2016 at 2:06 PM, Anthony Milano <[email protected]> >> wrote: >> >>> I hate to remove the geochart but its so unreliable. It sometimes loads >>> and sometimes not for the exact same data/page: >>> >>> http://www.towncharts.com/Alabama/Demographics/Jefferson-Cou >>> nty-AL-Demographics-data.html#Figure37 >>> >>> Any new insights? >>> >>> code for that chart (note that there are 47 total google charts on this >>> page so maybe that's the problem?) >>> >>> google.charts.setOnLoadCallback(drawTable37); function drawTable37() >>> { var data37 = >>> google.visualization.arrayToDataTable([['Region','Jefferson County'], >>> [{v:'150',f:'Europe'},0.072], [{v:'142',f:'Asia'},0.318], >>> [{v:'002',f:'Africa'},0.078], >>> [{v:'009',f:'Oceania'},0.002], [{v:'019',f:'Americas'},0.53] >>> ]); var formatterPec = new >>> google.visualization.NumberFormat({pattern: '##%'});var formatterPec1 = new >>> google.visualization.NumberFormat({pattern: '##.#%'});var formatterBar = >>> new google.visualization.BarFormat({width: >>> 60});formatterPec.format(data37,1);var options37 >>> ={'chartType':'GeoChart','containerId':'chart_div37','resolution':'continents','width':700,'height':300,'legend':{numberFormat:'#.#%'},'colors':['#C5E6FC','#0A67A3'],'chartArea':{width:"90%",height:"98%"}}; >>> var Table37 = new >>> google.visualization.GeoChart(document.getElementById('chart_div37')); >>> Table37.draw(data37, options37); } >>> >>> >>> Any help greatly appreciated! >>> >>> >>> >>> On Wed, Sep 14, 2016 at 4:54 PM, Anthony Milano <[email protected]> >>> wrote: >>> >>>> I continue to have trouble but only with the geochart not loading. >>>> >>>> Here is the page: http://www.towncharts.com/Texa >>>> s/Demographics/San-Antonio-city-TX-Demographics-data.html >>>> >>>> Figure 37 is a geochart and it does not load for me. Just says, >>>> "Requested map does not exist." But I know that's not true. Its a map of >>>> the US and works intermittently. >>>> >>>> It must have something to do with too much delay. I'm wondering if it >>>> would be better to generate an image of that chart instead and just show >>>> that. >>>> >>>> Any thoughts? >>>> >>>> >>>> >>>> On Fri, Apr 8, 2016 at 4:00 AM, 'Daniel LaLiberte' via Google >>>> Visualization API <[email protected]> wrote: >>>> >>>>> That sounds like you have a timing problem in the page then. Whether >>>>> it throws an error depends on random aspects of how long various things >>>>> take to load, for example. >>>>> >>>>> Maybe that is enough of a clue to go on, but otherwise you'll probably >>>>> need to provide more details about your entire page so we have a chance of >>>>> helping you. Can you give us a link to the page? >>>>> >>>>> On Fri, Apr 8, 2016 at 6:51 AM, AM <[email protected]> wrote: >>>>> >>>>>> It just went back to working again. This chart data doesn't change. >>>>>> That's the wired thing. Nothing changes but the chart sometimes throws >>>>>> the >>>>>> error. Still seemed like if it takes too long to load it's a problem. >>>>>> >>>>>> -- >>>>>> 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/a >>>>>> a747a8b-97d0-4afc-8b3b-8e78079f1c57%40googlegroups.com. >>>>>> 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/g-E13GmyGlE/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 >>>>> AOtcSJN_oz16BsjBnx1n5MbLznU9nwK5kO4qHwfKri%2BkPaQj0g%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJN_oz16BsjBnx1n5MbLznU9nwK5kO4qHwfKri%2BkPaQj0g%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/CAB8bdeRju0aJ09hTpOnpEiS%2BgX54 >>> oVzp4GS7gqPuvxjDJVr9SQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/google-visualization-api/CAB8bdeRju0aJ09hTpOnpEiS%2BgX54oVzp4GS7gqPuvxjDJVr9SQ%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/g-E13GmyGlE/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/CAOtcSJOyRP-Bdzi21qUVx%2BT_dZQ >> 4eKJe0sU8mF19yUd6RShAnw%40mail.gmail.com >> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOyRP-Bdzi21qUVx%2BT_dZQ4eKJe0sU8mF19yUd6RShAnw%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/CAB8bdeRQn4XS1GBapqcRY-VYtNjO_p1voihZ9r% > 2BfkUPxcwPNSg%40mail.gmail.com > <https://groups.google.com/d/msgid/google-visualization-api/CAB8bdeRQn4XS1GBapqcRY-VYtNjO_p1voihZ9r%2BfkUPxcwPNSg%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/CAOtcSJMONF89hrxQmgfb3AkLbE%3DX_cLzG4KS2FAWV7FuLOuXHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
