# ui.Chart.setView

<br />

Sets a view for this chart.

<br />

Returns this chart.

| Usage | Returns |
|---|---|
| `Chart.setView(view)` | ui.Chart |

| Argument | Type | Details |
|---|---|---|
| this: `ui.chart` | ui.Chart | The ui.Chart instance. |
| `view` | Object | A DataView initializer object, which acts as a filter over the underlying data in the chart. See: https://developers.google.com/chart/interactive/docs/reference#DataView |