You declared "mytable" locally in drawDashboard(), so it doesn't exist for
selectHandler. I find it is much more convenient to pass the event handler
function directly, rather than by reference; that way it can access all your
chart-related objects without having to declare them globally:
google.visualization.events.addListener(mytable, 'select', function () {
// code to handle select events
});
--
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/-/7czXa10RJ2IJ.
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.