ui.Chart.array.values
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Generuje wykres z tablicy. Wykreśla osobne serie dla każdego wektora 1-D wzdłuż danej osi.
– Oś X = indeks tablicy wzdłuż osi, opcjonalnie oznaczony etykietami xLabels.
– Oś Y = Wartość.
– Seria = wektor opisany przez indeksy osi tablicy niebędącej osią.
Zwraca wykres.
Wykorzystanie | Zwroty |
---|
ui.Chart.array.values(array, axis, xLabels) | ui.Chart |
Argument | Typ | Szczegóły |
---|
array | Tablica|Lista<Object> | Tablica do wykresu. |
axis | Liczba | Oś, wzdłuż której ma zostać wygenerowana seria wektorów 1-D. |
xLabels | Tablica|Lista<Obiekt>, opcjonalnie | Etykiety znaczników na osi X wykresu. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 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. |"]]