ui.Chart.feature.byProperty
ui.Chart.feature.byProperty(features, xProperties, seriesProperty)
这个比较加单按照参数进行填就好了
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.
Arguments:
features (Feature|FeatureCollection|List<Feature>):
The features to include in the chart.
xProperties (List<String>|Object|String, optional):
One of (1) a property to be plotted on the x-axis; (2) a list