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.feature.histogram

Generates a Chart from a set of features. Computes and plots a histogram of the given property.

  - X-axis = Histogram buckets (of property value).

  - Y-axis = Frequency (i.e. the number of features whose value of property lands within the x-axis bucket bounds).

Returns a chart.

UsageReturns
ui.Chart.feature.histogram(features, property,maxBuckets,minBucketWidth,maxRaw)ui.Chart
ArgumentTypeDetails
featuresFeature|FeatureCollection|List<Feature>The features to include in the chart.
propertyStringThe name of the property to generate the histogram for.
maxBucketsNumber, optionalThe maximum number of buckets to use when building a histogram; will be rounded up to a power of 2. Not used when the value of property is non-numeric.
minBucketWidthNumber, optionalThe minimum histogram bucket width, or null to allow any power of 2. Not used when property is non-numeric.
maxRawNumber, optionalThe number of values to accumulate before building the initial histogram. Not used when property is non-numeric.

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.