# ui.Chart.setDataTable

<br />

Sets the DataTable containing data for this chart.

<br />

Returns this chart.

| Usage | Returns |
|---|---|
| `Chart.setDataTable(dataTable)` | ui.Chart |

| Argument | Type | Details |
|---|---|---|
| this: `ui.chart` | ui.Chart | The ui.Chart instance. |
| `dataTable` | List\[List\[Object\]\]\|Object\|String | A 2-D array of data to chart or a Google Visualization DataTable literal. See: http://developers.google.com/chart/interactive/docs/reference#DataTable |