ui.Chart.array.values
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יוצרת תרשים ממערך. משרטט סדרות נפרדות לכל וקטור חד-ממדי לאורך הציר הנתון.
- ציר X = אינדקס המערך לאורך הציר, אפשר לתייג אותו באמצעות xLabels.
– ציר ה-Y = ערך.
– סדרה = וקטור, שמתואר על ידי אינדקסים של הצירים במערך שאינם צירים.
מחזירה תרשים.
שימוש | החזרות |
---|
ui.Chart.array.values(array, axis, xLabels) | ui.Chart |
ארגומנט | סוג | פרטים |
---|
array | Array|List<Object> | מערך לתרשים. |
axis | מספר | הציר שלפיו ייצרו את סדרת הווקטורים החד-ממדית. |
xLabels | Array|List<Object>, אופציונלי | תוויות לסימוני משנה לאורך ציר ה-X של התרשים. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 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. |"]]