تنظيم صفحاتك في مجموعات يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
خيارات الرسم البياني
تعرِض هذه السمة الخيارات التي تم ضبطها حاليًا لعنصر Chart، مثل الارتفاع واللون وما إلى ذلك.
يُرجى الاطّلاع على مستندات مرجع رسومات البيان المرئي للحصول على معلومات عن الخيارات المتاحة. يمكن العثور على خيارات محدّدة لكل رسم بياني من خلال النقر على الرسم البياني المحدّد في معرض الرسوم البيانية.
تعرِض هذه السمة خيارًا تم ضبطه لهذا الرسم البياني.
مستندات تفصيلية
get(option)
تعرِض هذه السمة خيارًا تم ضبطه لهذا الرسم البياني.
المعلَمات
الاسم
النوع
الوصف
option
String
السلسلة التي تمثّل الخيار المطلوب
الإرجاع
Object: القيمة المحدّدة حاليًا للخيار المحدّد أو null إذا لم يتم تحديد الخيار
getOrDefault(option)
تعرِض هذه السمة خيارًا تم ضبطه لهذا الرسم البياني. في حال عدم ضبط خيار الرسم البياني، يتم عرض القيمة التلقائية لهذا الخيار إذا كانت متاحة، أو يتم عرض null إذا لم تكن القيمة التلقائية متوفّرة.
المعلَمات
الاسم
النوع
الوصف
option
String
السلسلة التي تمثّل الخيار المطلوب
الإرجاع
Object: القيمة المحدّدة حاليًا للخيار المحدّد إذا لم يتم ضبط الخيار وكانت القيمة التلقائية متاحة، يتم عرض القيمة التلقائية.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eChartOptions\u003c/code\u003e provides access to the configuration settings of a Chart, such as height and color, and these options cannot be changed once set.\u003c/p\u003e\n"],["\u003cp\u003eTo understand available options, refer to the visualization reference and chart gallery for specific chart details.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two methods: \u003ccode\u003eget(option)\u003c/code\u003e to retrieve a specific option's value, returning \u003ccode\u003enull\u003c/code\u003e if not set, and \u003ccode\u003egetOrDefault(option)\u003c/code\u003e which returns the option's value or its default if available, otherwise \u003ccode\u003enull\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class ChartOptions\n\nChartOptions\n\nExposes options currently configured for a [Chart](/apps-script/reference/charts/chart), such as height, color, etc.\n\nPlease see the [visualization\nreference](https://developers.google.com/chart/interactive/docs/customizing_charts) documentation for information on what options are available. Specific options for\neach chart can be found by clicking on the specific chart in the [chart gallery](https://developers.google.com/chart/interactive/docs/gallery).\n\nThese options are immutable. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------------------|-------------|---------------------------------------------|\n| [get(option)](#get(String)) | `Object` | Returns a configured option for this chart. |\n| [getOrDefault(option)](#getOrDefault(String)) | `Object` | Returns a configured option for this chart. |\n\nDetailed documentation\n----------------------\n\n### `get(option)`\n\nReturns a configured option for this chart.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|----------|---------------------------------------------|\n| `option` | `String` | The string representing the desired option. |\n\n#### Return\n\n\n`Object` --- The value currently set for the specified option or `null` if the option was not\nset.\n\n*** ** * ** ***\n\n### `get``Or``Default(option)`\n\nReturns a configured option for this chart. If the chart option is not set, returns the default\nvalue of this option if available, or returns `null` if the default value is not\navailable.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|----------|---------------------------------------------|\n| `option` | `String` | The string representing the desired option. |\n\n#### Return\n\n\n`Object` --- The value currently set for the specified option. If the option was not set and the\ndefault value is available, returns the default value."]]