ui.Chart.image.series

สร้างแผนภูมิจาก ImageCollection พล็อตค่าที่ได้จากแต่ละแบนด์ในภูมิภาคต่างๆ ในรูปภาพ โดยปกติจะเป็นอนุกรมเวลา

  - แกน X: รูปภาพที่มีป้ายกำกับตามค่า xProperty

  - แกน Y: ค่าของแถบ

  - ชุดข้อมูล: ชื่อวงดนตรี

แสดงผลแผนภูมิ

การใช้งานการคืนสินค้า
ui.Chart.image.series(imageCollection, region, reducer, scale, xProperty)ui.Chart
อาร์กิวเมนต์ประเภทรายละเอียด
imageCollectionImageCollectionImageCollection ที่มีข้อมูลที่จะรวมไว้ในแผนภูมิ
regionFeature|FeatureCollection|Geometryภูมิภาคที่จะลด
reducerแผ่นปิดพื้น (ไม่บังคับ)ตัวลดที่สร้างค่าสำหรับแกน y ต้องแสดงค่าเดียว ค่าเริ่มต้นคือ ee.Reducer.mean()
scaleหมายเลข (ไม่บังคับ)มาตราส่วนที่จะใช้กับตัวลดในหน่วยเมตร
xPropertyสตริง ไม่บังคับพร็อพเพอร์ตี้ที่จะใช้เป็นป้ายกำกับสำหรับแต่ละรูปภาพในแกน X ค่าเริ่มต้นคือ "system:time_start"

ตัวอย่าง

โปรแกรมแก้ไขโค้ด (JavaScript)

// Define a region of pixels to reduce and chart a time series for.
var region = ee.Geometry.BBox(-121.916, 37.130, -121.844, 37.076);

// Define an image collection time series to chart, MODIS vegetation indices
// in this case.
var imgCol = ee.ImageCollection('MODIS/006/MOD13A1')
  .filter(ee.Filter.date('2015-01-01', '2020-01-01'))
  .select(['NDVI', 'EVI']);

// Define the chart and print it to the console.
var chart = ui.Chart.image.series({
  imageCollection: imgCol,
  region: region,
  reducer: ee.Reducer.mean(),
  scale: 500,
  xProperty: 'system:time_start'
})
.setSeriesNames(['EVI', 'NDVI'])
.setOptions({
  title: 'Average Vegetation Index Value by Date',
  hAxis: {title: 'Date', titleTextStyle: {italic: false, bold: true}},
  vAxis: {
    title: 'Vegetation index (x1e4)',
    titleTextStyle: {italic: false, bold: true}
  },
  lineWidth: 5,
  colors: ['e37d05', '1d6b99'],
  curveType: 'function'
});
print(chart);