Earth Engine 即將推出
非商業用途的配額級別,以便保護共用運算資源,並確保所有使用者都能享有穩固效能。所有非商業用途的專案都必須在
2026 年 4 月 27 日前選取配額級別,否則屆時會預設為「社群」級別。在
2026 年 4 月 27 日,所有專案 (無論選取級別的日期為何) 的級別配額都會生效。
瞭解詳情。
ui.Chart.feature.groups
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
從一組特徵產生圖表。繪製特徵群組中指定屬性的值。如果特徵的 groupProperty 值相同,系統就會將這些特徵分組,並繪製成單一序列。
- X 軸 = xProperty 值。
- Y 軸 = yProperty 值。
- 序列 = 特徵群組 (依 seriesProperty)。
傳回圖表。
| 用量 | 傳回 |
|---|
ui.Chart.feature.groups(features, xProperty, yProperty, seriesProperty) | ui.Chart |
| 引數 | 類型 | 詳細資料 |
|---|
features | Feature|FeatureCollection|List[Feature] | 要納入圖表的特徵。 |
xProperty | 字串 | 要用做 x 軸上每個特徵標籤的屬性。 |
yProperty | 字串 | 要在 Y 軸上繪製的屬性。 |
seriesProperty | 字串 | 用於判斷特徵群組的屬性。圖表會將 groupProperty 值相同的特徵繪製為單一序列。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-01-08 (世界標準時間)。
[null,null,["上次更新時間:2026-01-08 (世界標準時間)。"],[],["The core functionality generates a chart by plotting feature properties. It groups features based on a `seriesProperty`, displaying each group as a unique series. The `xProperty` determines the x-axis labels, while the `yProperty` dictates the y-axis values. Input `features` (individually or in collections) are analyzed and the resulting chart is returned. The function `ui.Chart.feature.groups` handles this process, requiring the feature data and three property strings as input.\n"]]