You are not assigning the dashboard to any variable. You code reads:
new google.visualization.Dashboard(document.getElementById('dashboard')).
bind([agePicker, genderPicker],barChart).
draw(data);
google.visualization.events.addListener(dashboard, 'ready', function()
{...});
But the 'dashboard' object is undefined.
The declaration line should read:
*var dashboard* = new google.visualization.Dashboard(...);
dashboard.bind(...);
dashboard.draw(...);
google.visualization.events.addListener(dashboard, 'ready', function()
{...});
/R.
--
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/-/gwck4tffReoJ.
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.