A dashboard is a visual structure that enables the organization and management of multiple charts that share the same underlying data.
Controls are user interface widgets (category pickers, range sliders, autocompleters, etc.) users interact with in order to drive the data managed by a dashboard and the charts that are part of it. For example, a string filter control is a simple text input field that lets the user filter data via string matching. Given a column and matching options, the control filters out the rows that don't match the term that's in the input field.
The Gviz API defines a dashboard as a set of charts and controls bound together. The bindings between the different components define the data flow, the state of the controls filters views of the data which propagate in the dashboard and are eventually visualized with charts. For more details, see the Gviz documentation.
The dashboard panel has two purposes, one is being a container for the charts and controls objects that compose the dashboard, and the other is holding the data and use as an interface for binding controls to charts.
Methods
Method | Return type | Brief description |
---|---|---|
getId() | String | Returns the id that has been assigned to this object. |
getType() | String | Gets the type of this object. |
setId(id) | DashboardPanel | Sets the id of this DashboardPanel to be used with UiApp. |
Detailed documentation
getId()
Returns the id that has been assigned to this object.
This can be used in conjunction with app.getElementById() to retrieve a reference to this object.
Return
String
— the id that has been assigned to this object
getType()
Gets the type of this object.
Return
String
— the object type
setId(id)
Sets the id of this DashboardPanel
to be used with UiApp.
Parameters
Name | Type | Description |
---|---|---|
id | String | the new id, which can be used to retrieve the DashboardPanel from
app.getElementById(id). |
Return
DashboardPanel
— the DashboardPanel
itself, useful for chaining.