- محور X: تصویر، با مقدار xProperty برچسب گذاری شده است.
- محور Y: مقدار باند.
- سری: نام گروه.
نموداری را برمیگرداند.
استفاده | برمی گرداند |
---|---|
ui.Chart.image.series(imageCollection, region, reducer , scale , xProperty ) | ui.Chart |
استدلال | تایپ کنید | جزئیات |
---|---|---|
imageCollection | ImageCollection | یک ImageCollection با داده هایی که باید در نمودار گنجانده شود. |
region | ویژگی|مجموعه ویژگی|هندسه | منطقه کاهش یابد. |
reducer | کاهنده، اختیاری | کاهنده ای که مقادیر محور y را تولید می کند. باید یک مقدار واحد را برگرداند. پیشفرض ee.Reducer.mean(). |
scale | شماره، اختیاری | مقیاس برای استفاده با کاهنده بر حسب متر. |
xProperty | رشته، اختیاری | ویژگی برای استفاده به عنوان برچسب برای هر تصویر در محور x. پیشفرض «system:time_start» است. |
نمونه ها
ویرایشگر کد (جاوا اسکریپت)
// 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);