ui.Chart.feature.byProperty
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک نمودار از مجموعه ای از ویژگی ها ایجاد می کند. مقادیر دارایی یک یا چند ویژگی را ترسیم می کند.
- X-axis = نام ویژگی، با برچسب xProperties (پیشفرض: همه ویژگیها).
- محور Y = مقدار ویژگی (باید عددی باشد).
- Series = ویژگیها، برچسبگذاری شده توسط seriesProperty (پیشفرض: 'system:index').
همه ویژگی ها به جز seriesProperty به طور پیش فرض در محور x گنجانده شده اند.
نموداری را برمیگرداند.
استفاده | برمی گرداند | ui.Chart.feature.byProperty(features, xProperties , seriesProperty ) | ui.Chart |
استدلال | تایپ کنید | جزئیات | features | Feature|FeatureCollection|List<Feature> | ویژگی هایی که باید در نمودار گنجانده شود. |
xProperties | List<String>|شیء|رشته، اختیاری | یکی از (1) خاصیتی که باید روی محور x رسم شود. (2) فهرستی از خواصی که باید روی محور x رسم شوند. یا (3) فرهنگ لغت (ویژگی، برچسب) که برچسبهایی را برای خواصی که به عنوان مقادیر در محور x استفاده میشوند مشخص میکند. اگر حذف شود، تمام خصوصیات روی محور x رسم میشوند که با نام آنها برچسب گذاری میشود. |
seriesProperty | رشته، اختیاری | نام ویژگی مورد استفاده برای برچسب زدن هر ویژگی در افسانه. پیشفرض «system:index» است. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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'. |"]]