ui.Chart.setOptions
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
گزینه های مورد استفاده برای استایل دادن به این نمودار را تنظیم می کند.
این نمودار را برمی گرداند.
استفاده | برمی گرداند | Chart. setOptions (options) | ui.Chart |
استدلال | تایپ کنید | جزئیات | این: ui.chart | ui.Chart | نمونه ui.Chart. |
options | شیء | یک شی که گزینه های سبک نمودار را تعریف می کند مانند: title (رشته) عنوان نمودار. | colors (آرایه) آرایه ای از رنگ ها که برای رسم نمودار استفاده می شود. | قالب آن باید از گزینه های Google Visualization API پیروی کند: https://developers.google.com/chart/interactive/docs/customizing_charts |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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 |"]]