Earth Engine 即將推出
非商業用途的配額級別,以便保護共用運算資源,並確保所有使用者都能享有穩固效能。所有非商業用途的專案都必須在
2026 年 4 月 27 日前選取配額級別,否則屆時會預設為「社群」級別。在
2026 年 4 月 27 日,所有專案 (無論選取級別的日期為何) 的級別配額都會生效。
瞭解詳情。
ui.Chart
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
圖表小工具。
| 用量 | 傳回 |
|---|
ui.Chart(dataTable, chartType, options, view, downloadable) | ui.Chart |
| 引數 | 類型 | 詳細資料 |
|---|
dataTable | List[List[Object]]|Object|String,選用 | 資料的 2D 陣列或 Google Visualization DataTable 常值。請參閱:http://developers.google.com/chart/interactive/docs/reference#DataTable |
chartType | 字串 (選用) | 圖表類型,例如「ScatterChart」、「LineChart」和「ColumnChart」。如需完整圖表清單,請參閱:https://developers.google.com/chart/interactive/docs/gallery |
options | 物件 (選用) | 定義圖表樣式選項的物件,例如:
title (字串) 圖表的標題。 |
colors (陣列) 用於繪製圖表的顏色陣列。 |
格式應符合 Google Visualization API 的選項:https://developers.google.com/chart/interactive/docs/customizing_charts |
view | 物件 (選用) | 設定 DataView 初始化工具物件,做為基礎資料的篩選器。請參閱:https://developers.google.com/chart/interactive/docs/reference#DataView |
downloadable | 布林值 (選填) | 圖表是否可以下載為 CSV、SVG 和 PNG 檔案。預設為 true。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-01-08 (世界標準時間)。
[null,null,["上次更新時間:2026-01-08 (世界標準時間)。"],[],["The `ui.Chart` widget displays a chart using a `dataTable`, `chartType`, and `options`. `dataTable` is a 2-D data array. `chartType` specifies the chart type (e.g., 'ScatterChart'). `options` control style, like `title` and `colors`. `view` allows data filtering. The `downloadable` boolean enables saving as CSV, SVG, or PNG, defaulting to true. Each parameter are optionnal.\n"]]