ui.Chart.array.values
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 | Array to chart. |
axis | Number | The axis along which to generate the 1-D vector series. |
xLabels | Array|List, 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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["ui.Chart.array.values generates a chart visualizing an array, plotting separate series for each 1-D vector along a specified axis."],["The 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."],["This function accepts an array, the axis for generating series, and optional x-axis labels as input, returning a ui.Chart object for display."]]],[]]