ui.Chart.feature.byFeature
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सुविधाओं के सेट से चार्ट जनरेट करता है. हर सुविधा के लिए, एक या उससे ज़्यादा प्रॉपर्टी की वैल्यू प्लॉट करता है:
- एक्स-ऐक्सिस = xProperty से लेबल की गई सुविधाएं (डिफ़ॉल्ट: 'system:index').
- Y-ऐक्सिस = yProperties की वैल्यू (डिफ़ॉल्ट: सभी प्रॉपर्टी).
- सीरीज़ = yProperties के नाम.
वैल्यू को x-ऐक्सिस पर उसी क्रम में लगाया जाता है जिस क्रम में इनपुट फ़ीचर होते हैं.
चार्ट दिखाता है.
इस्तेमाल | रिटर्न |
---|
ui.Chart.feature.byFeature(features, xProperty, yProperties) | ui.Chart |
आर्ग्यूमेंट | टाइप | विवरण |
---|
features | Feature|FeatureCollection|List<Feature> | चार्ट में शामिल करने के लिए सुविधाएं. |
xProperty | स्ट्रिंग, ज़रूरी नहीं | यह प्रॉपर्टी, x-ऐक्सिस पर हर फ़ीचर की वैल्यू के तौर पर इस्तेमाल की जाती है. डिफ़ॉल्ट रूप से, यह 'system:index' पर सेट होती है. |
yProperties | List<String>|String, ज़रूरी नहीं | y-ऐक्सिस पर इस्तेमाल की गई प्रॉपर्टी या प्रॉपर्टी. अगर इस पैरामीटर को शामिल नहीं किया जाता है, तो सभी सुविधाओं की सभी प्रॉपर्टी, y-ऐक्सिस पर चार्ट की जाएंगी. हालांकि, xProperty को शामिल नहीं किया जाएगा. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eCreates a chart plotting property values of features, with features on the x-axis and property values on the y-axis.\u003c/p\u003e\n"],["\u003cp\u003eFeatures can be ordered along the x-axis using a specified property or by their default 'system:index'.\u003c/p\u003e\n"],["\u003cp\u003eUsers can select specific properties to display on the y-axis, or by default, the chart will display all properties except the one used for the x-axis.\u003c/p\u003e\n"],["\u003cp\u003eThe chart is generated using the \u003ccode\u003eui.Chart.feature.byFeature()\u003c/code\u003e function, which takes the features, x-axis property, and y-axis properties as input.\u003c/p\u003e\n"]]],["The core content details generating a chart from features. It plots values of specified properties for each feature. The x-axis represents features, labeled by `xProperty` (default: 'system:index'). The y-axis represents `yProperties`' values (default: all properties). The order of features on the x-axis matches the input. The function `ui.Chart.feature.byFeature` takes `features`, an optional `xProperty`, and an optional `yProperties` list to return a chart.\n"],null,["# ui.Chart.feature.byFeature\n\n\u003cbr /\u003e\n\nGenerates a Chart from a set of features. Plots the value of one or more properties for each feature:\n\n\u003cbr /\u003e\n\n- X-axis = Features labeled by xProperty (default: 'system:index').\n\n- Y-axis = Values of yProperties (default: all properties).\n\n- Series = Names of yProperties.\n\nThe values are ordered along the x-axis in the same order as the input features.\n\nReturns a chart.\n\n| Usage | Returns |\n|-------------------------------------------------------------------------|----------|\n| `ui.Chart.feature.byFeature(features, `*xProperty* `, `*yProperties*`)` | ui.Chart |\n\n| Argument | Type | Details |\n|---------------|---------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `features` | Feature\\|FeatureCollection\\|List\\\u003cFeature\\\u003e | The features to include in the chart. |\n| `xProperty` | String, optional | The property used as the value of each feature on the x-axis. Defaults to 'system:index'. |\n| `yProperties` | List\\\u003cString\\\u003e\\|String, optional | Property or properties used on the y-axis. If omitted, all properties of all features will be charted on the y-axis (except xProperty). |"]]