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.
Usage | Returns |
---|
ui.Chart.feature.histogram(features, property, maxBuckets, minBucketWidth, maxRaw) | ui.Chart |
Argument | Type | Details |
---|
features | Feature|FeatureCollection|List | The features to include in the chart. |
property | String | The name of the property to generate the histogram for. |
maxBuckets | Number, optional | The 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. |
minBucketWidth | Number, optional | The minimum histogram bucket width, or null to allow any power of 2. Not used when property is non-numeric. |
maxRaw | Number, optional | The 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 the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Creates a histogram chart visualizing the distribution of a specified property within a set of features."],["The chart displays the frequency of features falling into different property value ranges (buckets) along the x and y axes."],["Users can customize the histogram's maximum number of buckets, minimum bucket width, and the number of raw values used before building it."],["Accepts Feature, FeatureCollection, or List as input for features and returns a ui.Chart object."]]],[]]