Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ui.Chart.image.byRegion

Generates a Chart from an image. Extracts and plots band values in one or more regions in the image, with each band in a separate series.

  - X-axis = Region labeled by xProperty (default: 'system:index')

  - Y-axis = Reducer output.

  - Series = Band name.

Returns a chart.

UsageReturns
ui.Chart.image.byRegion(image,regions,reducer,scale,xProperty)ui.Chart
ArgumentTypeDetails
imageImageImage to extract band values from.
regionsFeature|FeatureCollection|Geometry|List<Feature>|List<Geometry>, optionalRegions to reduce. Defaults to the image's footprint.
reducerReducer, optionalReducer that generates the value(s) for the y-axis. Must return a single value per band. Defaults to ee.Reducer.mean().
scaleNumber, optionalScale to use with the reducer in meters.
xPropertyString, optionalProperty to be used as the label for each Region on the x-axis. Defaults to 'system:index'.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-08 UTC.