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