ui.Chart.setDataTable
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đặt DataTable chứa dữ liệu cho biểu đồ này.
Trả về biểu đồ này.
Cách sử dụng | Giá trị trả về |
---|
Chart.setDataTable(dataTable) | ui.Chart |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.chart | ui.Chart | Thực thể ui.Chart. |
dataTable | List<List<Object>>|Object|String | Một mảng dữ liệu 2 chiều để lập biểu đồ hoặc một chữ ký Google Visualization DataTable. Xem: http://developers.google.com/chart/interactive/docs/reference#DataTable |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 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 |"]]