公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ui.Chart.array.values
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
从数组生成图表。沿给定轴为每个一维向量绘制单独的序列。
- X 轴 = 沿轴的数组索引,可选择使用 xLabels 进行标记。
- Y 轴 = 值。
- Series = Vector,由非轴数组轴的索引描述。
返回图表。
用法 | 返回 |
---|
ui.Chart.array.values(array, axis, xLabels) | ui.Chart |
参数 | 类型 | 详细信息 |
---|
array | 数组|列表<对象> | 从数组到图表。 |
axis | 数字 | 生成 1 维向量序列所沿的轴。 |
xLabels | Array|List<Object>,可选 | 图表 x 轴上刻度的标签。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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. |"]]