تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يمكنك استخدام أدوات مخطط Google مع الإعداد الافتراضي - تكون جميع عمليات التخصيص اختيارية والإعداد الأساسي جاهز للتشغيل. ومع ذلك، يمكن تخصيص الرسومات البيانية بسهولة إذا اعتمدت صفحة الويب نمطًا يتعارض مع الإعدادات الافتراضية المتوفرة. يعرض كل رسم بياني عددًا من الخيارات التي تخصّص مظهره وأسلوبه. ويتم التعبير عن هذه الخيارات في شكل أزواج الاسم:القيمة في كائن الخيارات الذي يتم تمريره إلى طريقة الرسم البياني draw().
عادةً ما تتيح الرسوم البيانية خيارات مخصّصة مناسبة لهذا التمثيل البصري.
على سبيل المثال، يتيح الرسم البياني الجدولي خيار sortColumn لتحديد عمود الترتيب التلقائي، بينما يتيح التمثيل البصري المخطط الدائري خيار colors الذي يتيح لك تحديد ألوان الشرائح. ويجب أن تصف مستندات كل رسم بياني الخيارات
المتاحة.
سيتم نقل خياراتك كمعلّمة ثانية اختيارية
إلى طريقة draw() للرسم البياني
الموضّحة سابقًا. ويمكنك تحديد الخيارات من خلال إنشاء كائن له خصائص
خاصة بكل رسم بياني.
يوضح المثال التالي إنشاء كائن خيارات يحدّد جميع هذه الخصائص:
var options = {
width: 400,
height: 240,
title: 'Toppings I Like On My Pizza',
colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6']
};
chart.draw(data, options);
في ما يلي المخطط الذي تنشئه هذه الشفرة.
يمكنك أيضًا تحديد الخيارات حرفيًا باستخدام طريقة draw():
chart.draw(data, {
width: 400,
height: 240,
title: 'Toppings I Like On My Pizza',
colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6'],
is3D: true
});
تاريخ التعديل الأخير: 2024-07-10 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2024-07-10 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# How to Customize Charts\n\nYou can use Google Chart Tools with their default setting - all customization is optional and the basic setup is launch-ready. However, charts can be easily customizable in case your webpage adopts a style which is at odds with provided defaults. Every chart exposes a number of options that customize its look and feel. These options are expressed as name:value pairs in the options object passed into a chart's [draw()](/chart/interactive/docs/reference#visdraw) method.\n\nCharts usually support custom options appropriate to that visualization.\nFor example, the [table chart](/chart/interactive/docs/gallery/table) supports\na `sortColumn` option to specify the default sorting column, and the [pie\nchart](/chart/interactive/docs/gallery/piechart#Configuration_Options) visualization supports a `colors` option that lets you specify\nslice colors. Each chart's documentation should describe the options\nthat it supports.\n\nYou will pass your options in as an optional second parameter\nto the chart's [draw()](/chart/interactive/docs/reference#visdraw) method\ndescribed previously. You specify options by creating an object with properties\nspecific to each chart.\n\nThe following example demonstrates creating an options object that specifies all\nof these properties: \n\n```\nvar options = {\n width: 400,\n height: 240,\n title: 'Toppings I Like On My Pizza',\n colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6']\n};\n\nchart.draw(data, options);\n```\n\nHere's the chart that this code creates.\n\n|---|\n| |\n\nYou can also specify options literally within the `draw()` method: \n\n```\nchart.draw(data, {\n width: 400,\n height: 240,\n title: 'Toppings I Like On My Pizza',\n colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6'],\n is3D: true\n});\n```\n\nHere's the chart that this code creates.\n\n|---|\n| |\n\n**More Information**\n\n- [Customized branding example](/chart/interactive/docs/examples#customized_branding)\n- [Customized table example](/chart/interactive/docs/examples#custom_table_example)"]]