I want to know it as well. Thanks Daniel.
Question,
On Tuesday, February 3, 2015 at 11:30:27 PM UTC-5, Daniel LaLiberte wrote:
>
> Hi Bernd,
>
> You have a syntax error on line 8 - your quoted "2014" is missing a
> quote. Then, your dataCap function, having the same name as the dataCap
> variable, is a problem since the function will replace the variable value.
> Change it to a different name, like changeDataCap(). Like so:
>
> var dataCap = "2014";
>
> function changeDataCap(){
>
> dataCap = document.getElementById("selectedYear").value;
> alert('dataCap: ' + dataCap);
> drawChart();
> }
>
I tried it and it works. However, when I comment out that 'alert' prompt
line, the chart stops being updated. Why is that? Is there any easy fix
without a popping alert window every time?
Thanks
...
> <select id="selectedYear" onchange="changeDataCap()">
> ...
>
>
>
> On Tue, Feb 3, 2015 at 4:26 PM, "Dr. Bernd Krämer" <
> [email protected] <javascript:>> wrote:
>
>> Hi Daniel,
>>
>> I thought I had an elegant solution with a selection in the query part of
>> the draw function (see attached) but no chart appears on screen. My
>> programming experience is quite rusty, I must admit.
>>
>> Thanks
>>
>> Bernd
>>
>>
--
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.
For more options, visit https://groups.google.com/d/optout.