公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取。如未在 2025 年 9 月 26 日前完成驗證,存取權可能會暫停。
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 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["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"]]