- X-ऐक्सिस: इमेज, जिसे xProperty वैल्यू के हिसाब से लेबल किया गया है.
- Y-ऐक्सिस: बैंड की वैल्यू.
- सीरीज़: बैंड के नाम.
यह फ़ंक्शन, एक चार्ट दिखाता है.
इस्तेमाल | रिटर्न |
---|---|
ui.Chart.image.series(imageCollection, region, reducer, scale, xProperty) | ui.Chart |
आर्ग्यूमेंट | टाइप | विवरण |
---|---|---|
imageCollection | ImageCollection | चार्ट में शामिल करने के लिए डेटा वाली ImageCollection. |
region | Feature|FeatureCollection|Geometry | कम किया जाने वाला क्षेत्र. |
reducer | 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);