Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Chart.array.values
Stay organized with collections
Save and categorize content based on your preferences.
Generates a Chart from an array. Plots separate series for each 1-D vector along the given axis.
- X-axis = Array index along axis, optionally labeled by xLabels.
- Y-axis = Value.
- Series = Vector, described by indices of the non-axis array axes.
Returns a chart.
Usage | Returns | ui.Chart.array.values(array, axis, xLabels) | ui.Chart |
Argument | Type | Details | array | Array|List<Object> | Array to chart. |
axis | Number | The axis along which to generate the 1-D vector series. |
xLabels | Array|List<Object>, optional | Labels for ticks along the x-axis of the chart. |
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 2025-07-08 UTC.
[null,null,["Last updated 2025-07-08 UTC."],[[["\u003cp\u003eui.Chart.array.values generates a chart visualizing an array, plotting separate series for each 1-D vector along a specified axis.\u003c/p\u003e\n"],["\u003cp\u003eThe x-axis represents the array index along the chosen axis and can optionally be labeled using xLabels, while the y-axis represents the values, and each series corresponds to a vector defined by indices of the non-axis array axes.\u003c/p\u003e\n"],["\u003cp\u003eThis function accepts an array, the axis for generating series, and optional x-axis labels as input, returning a ui.Chart object for display.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.array.values\n\n\u003cbr /\u003e\n\nGenerates a Chart from an array. Plots separate series for each 1-D vector along the given axis.\n\n\u003cbr /\u003e\n\n- X-axis = Array index along axis, optionally labeled by xLabels.\n\n- Y-axis = Value.\n\n- Series = Vector, described by indices of the non-axis array axes.\n\nReturns a chart.\n\n| Usage | Returns |\n|---------------------------------------------------|----------|\n| `ui.Chart.array.values(array, axis, `*xLabels*`)` | ui.Chart |\n\n| Argument | Type | Details |\n|-----------|---------------------------------|---------------------------------------------------------|\n| `array` | Array\\|List\\\u003cObject\\\u003e | Array to chart. |\n| `axis` | Number | The axis along which to generate the 1-D vector series. |\n| `xLabels` | Array\\|List\\\u003cObject\\\u003e, optional | Labels for ticks along the x-axis of the chart. |"]]