- X 軸: 画像。xProperty 値でラベル付けされます。
- Y 軸: バンド値。
- シリーズ: 帯域名。
グラフを返します。
用途 | 戻り値 |
---|---|
ui.Chart.image.series(imageCollection, region, reducer, scale, xProperty) | ui.Chart |
引数 | タイプ | 詳細 |
---|---|---|
imageCollection | ImageCollection | グラフに含めるデータを含む ImageCollection。 |
region | Feature|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);