You are correct. I tried eliminating the whole drawing process for the 
first graph, but that broke it. Then I decided to try and remove just the 
div and that broke it as well.
At least now it does what I want it to do. ;)

On Monday, November 26, 2018 at 12:21:19 AM UTC+1, Daniel LaLiberte wrote:
>
> If the JavaScript in a page fails, that kills JavaScript for the remainder 
> of the document (or at least the remainder of the thread, if you are 
> running in a setTimeout, for example).  So the interference between your 
> two charts is that the second one could not get started because the first 
> one failed, and the first one failed because you merely removed its HTML 
> element.  I'm assuming that when you said you just removed the div for the 
> first chart, that is all you did.
>
> On Sun, Nov 25, 2018 at 6:13 PM Arne Hulstein <[email protected] 
> <javascript:>> wrote:
>
>> Thanks Daniel. That works great.
>>
>> However, can you explain to me how the two interfere? Just so I 
>> understand the changes that you've made. I'm trying to learn here as much 
>> as trying to get it to just work. ;)
>>
>> On Sunday, November 25, 2018 at 9:53:41 PM UTC+1, Daniel LaLiberte wrote:
>>>
>>> Just removing the div would mean the script to draw the first chart 
>>> would fail, so that would interfere with drawing your second chart.
>>>
>>> I modified the jsfiddle to just not draw the first chart:  
>>> https://jsfiddle.net/dlaliberte/f9c4s7q6/7/
>>>
>>
>

-- 
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/455770a5-1b49-402d-8771-b69cb01416cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to