ui.Chart.array.values
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างแผนภูมิจากอาร์เรย์ พล็อตชุดข้อมูลแยกกันสำหรับเวกเตอร์ 1 มิติแต่ละรายการตามแกนที่ระบุ
- แกน X = ดัชนีอาร์เรย์ตามแกน ซึ่งอาจมีป้ายกำกับโดย xLabels
- แกน Y = ค่า
- อนุกรม = เวกเตอร์ ซึ่งอธิบายโดยดัชนีของแกนอาร์เรย์ที่ไม่ใช่แกน
แสดงผลแผนภูมิ
การใช้งาน | การคืนสินค้า |
---|
ui.Chart.array.values(array, axis, xLabels) | ui.Chart |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
array | Array|List<Object> | อาร์เรย์เป็นแผนภูมิ |
axis | ตัวเลข | แกนที่จะสร้างชุดเวกเตอร์ 1 มิติ |
xLabels | Array|List<Object> ไม่บังคับ | ป้ายกำกับสำหรับเครื่องหมายขีดตามแกน x ของแผนภูมิ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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. |"]]