Great, thanks, Daniel.

Bernd

Am Mittwoch, 4. Februar 2015 05:30:27 UTC+1 schrieb Daniel LaLiberte:
>
> 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();
> }
>
> ...
> <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] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> 
>  - 978-394-1058
> [email protected] <javascript:>   5CC, Cambridge MA
> [email protected] <javascript:> 9 Juniper Ridge Road, Acton 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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to