ui.Chart.feature.byFeature
Generates a Chart from a set of features. Plots the value of one or more properties for each feature:
- X-axis = Features labeled by xProperty (default: 'system:index').
- Y-axis = Values of yProperties (default: all properties).
- Series = Names of yProperties.
The values are ordered along the x-axis in the same order as the input features.
Returns a chart.
Usage | Returns |
---|
ui.Chart.feature.byFeature(features, xProperty, yProperties) | ui.Chart |
Argument | Type | Details |
---|
features | Feature|FeatureCollection|List | The features to include in the chart. |
xProperty | String, optional | The property used as the value of each feature on the x-axis. Defaults to 'system:index'. |
yProperties | List, optional | Property or properties used on the y-axis. If omitted, all properties of all features will be charted on the y-axis (except xProperty). |
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 chart plotting property values of features, with features on the x-axis and property values on the y-axis."],["Features can be ordered along the x-axis using a specified property or by their default 'system:index'."],["Users can select specific properties to display on the y-axis, or by default, the chart will display all properties except the one used for the x-axis."],["The chart is generated using the `ui.Chart.feature.byFeature()` function, which takes the features, x-axis property, and y-axis properties as input."]]],["The core content details generating a chart from features. It plots values of specified properties for each feature. The x-axis represents features, labeled by `xProperty` (default: 'system:index'). The y-axis represents `yProperties`' values (default: all properties). The order of features on the x-axis matches the input. The function `ui.Chart.feature.byFeature` takes `features`, an optional `xProperty`, and an optional `yProperties` list to return a chart.\n"]]