You were pretty close to what you need with your code.  The main problem is 
that data and chart are not in scope for the setTime() function, but that 
is easily fixed by assigning the event handler to the button inside the 
drawChart() function.  There were a few other minor things that I cleaned 
up for you; working version is available here: http://jsfiddle.net/xu5CB/ 

Replace the contents of your <script> and <body> tags with the javascript 
and HTML from my version.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/rs-Jyk6ew_QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to