Generates a Chart from an image collection. Extracts and plots the value of the specified band in each region for each image in the collection. Usually a time series.
- X-axis = Image labeled by xProperty (default: 'system:time_start').
- Y-axis = Reducer output.
- Series = Region labeled by seriesProperty (default: 'system:index').
Returns a chart.
Usage | Returns |
---|---|
ui.Chart.image.seriesByRegion(imageCollection, regions, reducer, band, scale, xProperty, seriesProperty) | ui.Chart |
Argument | Type | Details |
---|---|---|
imageCollection | ImageCollection | An ImageCollection with data to be included in the chart. |
regions | Feature|FeatureCollection|Geometry|List | The regions to reduce. |
reducer | Reducer | Reducer that generates the value for the y-axis. Must return a single value. |
band | Number|String, optional | The band name to reduce using the reducer. Defaults to the first band. |
scale | Number, optional | Scale to use with the reducer in meters. |
xProperty | String, optional | Property to be used as the label for each image on the x-axis. Defaults to 'system:time_start'. |
seriesProperty | String, optional | Property of features in opt_regions to be used for series labels. Defaults to 'system:index'. |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!