ui.Chart.feature.byProperty
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างแผนภูมิจากชุดฟีเจอร์ พล็อตค่าพร็อพเพอร์ตี้ของฟีเจอร์อย่างน้อย 1 รายการ
- แกน X = ชื่อพร็อพเพอร์ตี้ โดยมีป้ายกำกับเป็น xProperties (ค่าเริ่มต้น: พร็อพเพอร์ตี้ทั้งหมด)
- แกน Y = มูลค่าพร็อพเพอร์ตี้ (ต้องเป็นตัวเลข)
- ชุด = ฟีเจอร์ที่มีป้ายกำกับโดย seriesProperty (ค่าเริ่มต้น: "system:index")
ระบบจะรวมพร็อพเพอร์ตี้ทั้งหมด ยกเว้น seriesProperty ไว้ในแกน x โดยค่าเริ่มต้น
แสดงผลแผนภูมิ
การใช้งาน | การคืนสินค้า |
---|
ui.Chart.feature.byProperty(features, xProperties, seriesProperty) | ui.Chart |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
features | Feature|FeatureCollection|List<Feature> | ฟีเจอร์ที่จะรวมไว้ในแผนภูมิ |
xProperties | List<String>|Object|String, ไม่บังคับ | อย่างใดอย่างหนึ่งต่อไปนี้ (1) พร็อพเพอร์ตี้ที่จะพล็อตในแกน x (2) รายการพร็อพเพอร์ตี้ที่จะพล็อตในแกน x หรือ (3) พจนานุกรม (พร็อพเพอร์ตี้ ป้ายกำกับ) ที่ระบุป้ายกำกับสำหรับพร็อพเพอร์ตี้ที่จะใช้เป็นค่าในแกน x หากไม่ระบุ ระบบจะพล็อตพร็อพเพอร์ตี้ทั้งหมดในแกน x โดยติดป้ายกำกับด้วยชื่อของพร็อพเพอร์ตี้ |
seriesProperty | สตริง ไม่บังคับ | ชื่อของพร็อพเพอร์ตี้ที่ใช้ติดป้ายกำกับแต่ละฟีเจอร์ในคำอธิบาย ค่าเริ่มต้นคือ "system:index" |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eGenerates a chart that visualizes the property values of one or more features, plotting them on the y-axis against property names on the x-axis.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the chart by specifying which properties to display on the x-axis using \u003ccode\u003exProperties\u003c/code\u003e and how to label each feature in the legend using \u003ccode\u003eseriesProperty\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBy default, the chart includes all properties except the \u003ccode\u003eseriesProperty\u003c/code\u003e on the x-axis and labels features using their 'system:index'.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eui.Chart.feature.byProperty()\u003c/code\u003e takes a Feature, FeatureCollection, or List of features as input and returns a \u003ccode\u003eui.Chart\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.feature.byProperty\n\n\u003cbr /\u003e\n\nGenerates a Chart from a set of features. Plots property values of one or more features.\n\n\u003cbr /\u003e\n\n- X-axis = Property name, labeled by xProperties (default: all properties).\n\n- Y-axis = Property value (must be numeric).\n\n- Series = Features, labeled by seriesProperty (default: 'system:index').\n\nAll properties except seriesProperty are included on the x-axis by default.\n\nReturns a chart.\n\n| Usage | Returns |\n|-------------------------------------------------------------------------------|----------|\n| `ui.Chart.feature.byProperty(features, `*xProperties* `, `*seriesProperty*`)` | ui.Chart |\n\n| Argument | Type | Details |\n|------------------|---------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `features` | Feature\\|FeatureCollection\\|List\\\u003cFeature\\\u003e | The features to include in the chart. |\n| `xProperties` | List\\\u003cString\\\u003e\\|Object\\|String, optional | One of (1) a property to be plotted on the x-axis; (2) a list of properties to be plotted on the x-axis; or (3) a (property, label) dictionary specifying labels for properties to be used as values on the x-axis. If omitted, all properties will be plotted on the x-axis, labeled with their names. |\n| `seriesProperty` | String, optional | The name of the property used to label each feature in the legend. Defaults to 'system:index'. |"]]