Class DashboardPanelBuilder

DashboardPanelBuilder

A builder for a dashboard panel object. For an example of how to use DashboardPanelBuilder, refer to DashboardPanel.

For more details, see the Gviz documentation.

Methods

MethodReturn typeBrief description
bind(control, chart)DashboardPanelBuilderBinds a control to a chart, so that the chart is redrawn whenever the control collects a user interaction that affects the data managed by the dashboard.
bind(controls, charts)DashboardPanelBuilderBinds multiple controls to multiple charts, so that the charts are redrawn whenever the controls collect a user interaction that affects the data managed by the dashboard.
build()DashboardPanelBuilds a dashboard.
setDataTable(tableBuilder)DashboardPanelBuilderSets the data table to use for the dashboard using a DataTableBuilder.
setDataTable(source)DashboardPanelBuilderSets the dashboard's data table, which is the control's underlying data model.

Detailed documentation

bind(control, chart)

Binds a control to a chart, so that the chart is redrawn whenever the control collects a user interaction that affects the data managed by the dashboard.

For example, when binding a range selector to a chart, a user interaction is sliding the range selector to the desired range. The effect on the data is to keep only the data that's in the chosen range.

Parameters

NameTypeDescription
controlControlA control to bind.
chartChartA chart to bind.

Return

DashboardPanelBuilder — This builder, useful for chaining.


bind(controls, charts)

Binds multiple controls to multiple charts, so that the charts are redrawn whenever the controls collect a user interaction that affects the data managed by the dashboard. When binding multiple controls to a chart (or multiple charts), the data that's displayed in the chart is that which passes the filters of all of the controls (of this specific binding).

For more information about object binding see the Gviz documentation.

Parameters

NameTypeDescription
controlsControl[]An array of controls to bind.
chartsChart[]An array charts to bind.

Return

DashboardPanelBuilder — This builder, useful for chaining.


build()

Builds a dashboard.

Return

DashboardPanel — A control object, that can be used as a UI element.


setDataTable(tableBuilder)

Sets the data table to use for the dashboard using a DataTableBuilder. This is a convenience method for setting the data table without needing to call build().

Parameters

NameTypeDescription
tableBuilderDataTableBuilderA data table builder. A new data table is created instantly as part of this call, so any further updates to the builder aren't reflected in the dashboard.

Return

DashboardPanelBuilder — This builder, useful for chaining.


setDataTable(source)

Sets the dashboard's data table, which is the control's underlying data model.

Parameters

NameTypeDescription
sourceDataTableSourceThe data source to use for the dashboard.

Return

DashboardPanelBuilder — This builder, useful for chaining.

フィードバックを送信...

ご不明な点がありましたら、Google のサポートページをご覧ください。