ui.Chart.setOptions
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस चार्ट को स्टाइल करने के लिए इस्तेमाल किए गए विकल्पों को सेट करता है.
यह चार्ट दिखाता है.
इस्तेमाल | रिटर्न |
---|
Chart.setOptions(options) | ui.Chart |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: ui.chart | ui.Chart | ui.Chart इंस्टेंस. |
options | ऑब्जेक्ट | यह एक ऐसा ऑब्जेक्ट है जो चार्ट की स्टाइल से जुड़े विकल्पों के बारे में बताता है. जैसे:
title (string) चार्ट का टाइटल. |
colors (ऐरे) चार्ट बनाने के लिए इस्तेमाल किए गए रंगों का ऐरे. |
इसका फ़ॉर्मैट, Google विज़ुअलाइज़ेशन API के विकल्पों के मुताबिक होना चाहिए: https://developers.google.com/chart/interactive/docs/customizing_charts |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003esetOptions\u003c/code\u003e is used to customize the appearance of a chart, such as its title and colors.\u003c/p\u003e\n"],["\u003cp\u003eThis method accepts an \u003ccode\u003eoptions\u003c/code\u003e object to specify these customizations, aligning with Google Visualization API's options format.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003esetOptions\u003c/code\u003e on a \u003ccode\u003eui.Chart\u003c/code\u003e instance returns the chart itself, allowing for method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.Chart.setOptions\n\n\u003cbr /\u003e\n\nSets options used to style this chart.\n\n\u003cbr /\u003e\n\nReturns this chart.\n\n| Usage | Returns |\n|-----------------------------|----------|\n| Chart.setOptions`(options)` | ui.Chart |\n\n| Argument | Type | Details |\n|------------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.chart` | ui.Chart | The ui.Chart instance. |\n| `options` | Object | An object defining chart style options such as: |---------------------------------------------------------------| | ` title ` (string) The title of the chart. | | ` colors ` (Array) An array of colors used to draw the chart. | Its format should follow the Google Visualization API's options: https://developers.google.com/chart/interactive/docs/customizing_charts |"]]