公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取。如未在 2025 年 9 月 26 日前完成驗證,存取權可能會暫停。
ui.Chart.feature.byFeature
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
從一組特徵產生圖表。繪製每個特徵的一或多個屬性值:
- X 軸 = 由 xProperty 標示的特徵 (預設為「system:index」)。
- Y 軸 = yProperties 的值 (預設值:所有屬性)。
- 系列 = yProperty 的名稱。
X 軸上的值會按照輸入特徵的順序排列。
傳回圖表。
| 用量 | 傳回 |
|---|
ui.Chart.feature.byFeature(features, xProperty, yProperties) | ui.Chart |
| 引數 | 類型 | 詳細資料 |
|---|
features | Feature|FeatureCollection|List<Feature> | 要納入圖表的功能。 |
xProperty | 字串 (選用) | 做為 x 軸上每個特徵值的屬性。預設值為「system:index」。 |
yProperties | List<String>|String,選用 | 用於 y 軸的屬性。如果省略,系統會在 y 軸上繪製所有特徵的所有屬性 (xProperty 除外)。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The core content details generating a chart from features. It plots values of specified properties for each feature. The x-axis represents features, labeled by `xProperty` (default: 'system:index'). The y-axis represents `yProperties`' values (default: all properties). The order of features on the x-axis matches the input. The function `ui.Chart.feature.byFeature` takes `features`, an optional `xProperty`, and an optional `yProperties` list to return a chart.\n"]]