ui.Chart.setDataTable
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่า DataTable ที่มีข้อมูลสำหรับแผนภูมินี้
แสดงแผนภูมินี้
การใช้งาน | การคืนสินค้า |
---|
Chart.setDataTable(dataTable) | ui.Chart |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.chart | ui.Chart | อินสแตนซ์ ui.Chart |
dataTable | List<List<Object>>|Object|String | อาร์เรย์ 2 มิติของข้อมูลที่จะสร้างแผนภูมิ หรืออักษรตามตัวของ Google Visualization DataTable ดูที่ http://developers.google.com/chart/interactive/docs/reference#DataTable |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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 |"]]