Class DataViewDefinition
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
عرضالبياناتالتعريف
تعريف عرض البيانات لتصور بيانات الرسم البياني
يمكن ضبط تعريف عرض البيانات للرسوم البيانية لعرض عرض مستمد من جدول data
المحدّد وليس جدول البيانات نفسه. على سبيل المثال، إذا كان تعريف العرض في أحد الرسوم البيانية ينص على أنّه
أعمدة العرض هي [0، 3]، لا يتم أخذ سوى العمودَين الأول والثالث من جدول البيانات في
الاعتبار عند رسم الرسم البياني. اطّلِع على DataViewDefinitionBuilder
للحصول على مثال على كيفية تحديد DataViewDefinition
واستخدامه.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eA DataViewDefinition is used to define how chart data should be visualized, allowing charts to display a customized view derived from the original data table.\u003c/p\u003e\n"],["\u003cp\u003eBy specifying view columns (e.g., [0, 3]), a DataViewDefinition determines which columns from the data table are used for chart rendering, such as selecting only the first and third columns.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the DataViewDefinitionBuilder documentation for guidance on defining and utilizing DataViewDefinitions to modify chart visualizations.\u003c/p\u003e\n"]]],["A data view definition allows charts to visualize a subset of data from a data table, rather than the entire table. This is achieved by specifying which columns to include in the view. For instance, defining view columns as `[0, 3]` would mean only the first and third columns of the data table are used for the chart. A DataViewDefinitionBuilder helps in creating and implementing such views.\n"],null,["# Class DataViewDefinition\n\nDataViewDefinition\n\nA data view definition for visualizing chart data.\n\nData view definition can be set for charts to visualize a view derived from the given data\ntable and not the data table itself. For example if the view definition of a chart states that\nthe view columns are \\[0, 3\\], only the first and the third columns of the data table is taken into\nconsideration when drawing the chart. See [DataViewDefinitionBuilder](/apps-script/reference/charts/data-view-definition-builder) for an example on how\nto define and use a [DataViewDefinition](#)."]]