ui.Chart.feature.byProperty
Generates a Chart from a set of features. Plots property values of one or more features.
- X-axis = Property name, labeled by xProperties (default: all properties).
- Y-axis = Property value (must be numeric).
- Series = Features, labeled by seriesProperty (default: 'system:index').
All properties except seriesProperty are included on the x-axis by default.
Returns a chart.
Usage | Returns |
---|
ui.Chart.feature.byProperty(features, xProperties, seriesProperty) | ui.Chart |
Argument | Type | Details |
---|
features | Feature|FeatureCollection|List | The features to include in the chart. |
xProperties | List, optional | One of (1) a property to be plotted on the x-axis; (2) a list of properties to be plotted on the x-axis; or (3) a (property, label) dictionary specifying labels for properties to be used as values on the x-axis. If omitted, all properties will be plotted on the x-axis, labeled with their names. |
seriesProperty | String, optional | The name of the property used to label each feature in the legend. Defaults to 'system:index'. |
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."],[[["Generates a chart that visualizes the property values of one or more features, plotting them on the y-axis against property names on the x-axis."],["Users can customize the chart by specifying which properties to display on the x-axis using `xProperties` and how to label each feature in the legend using `seriesProperty`."],["By default, the chart includes all properties except the `seriesProperty` on the x-axis and labels features using their 'system:index'."],["The function `ui.Chart.feature.byProperty()` takes a Feature, FeatureCollection, or List of features as input and returns a `ui.Chart` object."]]],[]]