公告:凡是在 
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取。如未在 2025 年 9 月 26 日前完成驗證,存取權可能會暫停。
  
        
 
       
     
  
  
  
    
  
  
  
    
      ui.Chart.image.byRegion
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
從圖片生成圖表。擷取並繪製圖片中一或多個區域的波段值,每個波段都位於不同的序列中。
  - X 軸 = 由 xProperty 標記的區域 (預設值:'system:index')
  - Y 軸 = 縮減函式輸出內容。
  - Series = Band name。
傳回圖表。
| 用量 | 傳回 | 
|---|
| ui.Chart.image.byRegion(image, regions, reducer, scale, xProperty) | ui.Chart | 
| 引數 | 類型 | 詳細資料 | 
|---|
| image | 圖片 | 要從中擷取波段值的圖片。 | 
| regions | Feature|FeatureCollection|Geometry|List<Feature>|List<Geometry>,選用 | 要縮減的區域。預設為圖片的足跡。 | 
| reducer | 縮減函式 (選用) | 產生 Y 軸值的 Reducer。每個頻帶必須傳回單一值。預設為 ee.Reducer.mean()。 | 
| scale | 號碼 (選填) | 以公尺為單位,與縮減器搭配使用。 | 
| xProperty | 字串 (選用) | 做為 X 軸上每個區域標籤的屬性。預設值為「system:index」。 | 
  
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-25 (世界標準時間)。
  
  
  
    
      [null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The core functionality involves creating a chart from an image by extracting and plotting band values from specified regions. Users define `image`, `regions`, `reducer`, `scale`, and `xProperty`. It extracts band values, uses the provided `reducer` to compute a single y-value per band, which are then plotted as separate series. `regions` are labeled on the x-axis, based on the provided `xProperty`. The chart plots the reduced values per band in different regions, returning a `ui.Chart` object.\n"]]