Dashboards are the backdrops on which all controls and charts are bundled together. Since they act as the unifying component of the visualization and controls, dashboards can also be intentionally linked to create dependencies between controls. Controls may also be used to set a visualization to a predefined state, or act as a trigger point for ChartWrapper
events.
In general, a visualization with dashboard, controls, and events will always follow a pattern similar to the following outline:
<html> <head> <script> function visualization{ // Listen for an error event to happen google.visualization.events.addListener(chart/dashboard, 'error/ready/select',run_on_error); // Load the Wrapper libraries google.load // Data creation, linking methods don't change var data = google.visualization.DataTable // Create some controls var ctrl = new google.visualization.ControlWrapper // Create a chart var chart = new google.visualization.ChartWrapper // Bundle controls...