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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
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" <bernd.j...@googlemail.com> 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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
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();}
--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
--
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/ixgrUl0NX-8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
You still have the old dataCap function, which overrides your dataCap variable. Here is a fixed version: http://jsfiddle.net/dlaliberte/4w0bxLx0/