The region to reduce. If omitted, uses the entire image.
reducer
Reducer, optional
Reducer that generates the value(s) for the y-axis. Must return a single value per band. Defaults to ee.Reducer.mean().
scale
Number, optional
Scale to use with the reducer in meters.
classLabels
List., optional
A dictionary of labels used to identify classes in the series legend. If omitted, classes will be labeled with the value of classBand.
xLabels
List, optional
A list of labels used to label bands on the xAxis. Must have one fewer elements than the number of image bands. If omitted, bands will be labeled with their names. If the labels are numeric (e.g. wavelengths), x-axis will be continuous.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["The `ui.Chart.image.byClass` function generates a chart that visualizes band values within classified regions of an image, plotting band values on the y-axis and band names on the x-axis, with separate series for each class label."],["Users can specify the input image, the band containing class labels, an optional region of interest, a reducer for calculating band values (defaulting to the mean), a scale for the reducer, custom labels for classes, and custom labels for bands."],["The chart provides insights into how band values vary across different classes within the image, allowing for analysis of spectral characteristics associated with each class."]]],[]]