Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-08 UTC."],[[["\u003cp\u003eSets the DataTable containing data for the chart, accepting a 2-D array or a Google Visualization DataTable literal as input.\u003c/p\u003e\n"],["\u003cp\u003eReturns the ui.Chart instance, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetDataTable\u003c/code\u003e method is called on a ui.Chart instance and requires a 'dataTable' argument.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.setDataTable\n\n\u003cbr /\u003e\n\nSets the DataTable containing data for this chart.\n\n\u003cbr /\u003e\n\nReturns this chart.\n\n| Usage | Returns |\n|---------------------------------|----------|\n| Chart.setDataTable`(dataTable)` | ui.Chart |\n\n| Argument | Type | Details |\n|------------------|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.chart` | ui.Chart | The ui.Chart instance. |\n| `dataTable` | List\\\u003cList\\\u003cObject\\\u003e\\\u003e\\|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 |"]]