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.

UsageReturns
ui.Chart.feature.byFeature(features, xProperty, yProperties)ui.Chart
ArgumentTypeDetails
featuresFeature|FeatureCollection|List

The features to include in the chart.

xPropertyString, optional

The property used as the value of each feature on the x-axis. Defaults to 'system:index'.

yPropertiesList, 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).

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!