# إدارة علامات بيانات المخطط في العروض التقديمية باستخدام بايثون

> تعلم كيفية تخصيص علامات بيانات المخطط في Aspose.Slides، مما يعزز تأثير العرض التقديمي عبر صيغ PPT و PPTX و ODP من خلال أمثلة شفرة واضحة.

Source: https://docs.aspose.com/slides/ar/python-net/chart-data-marker/
Updated: 2025-12-08


## **ضبط خيارات علامة المخطط**
يمكن تعيين العلامات على نقاط بيانات المخطط داخل السلسلات المحددة. لضبط خيارات علامة المخطط، يرجى اتباع الخطوات أدناه:

- إنشاء كائن من الفئة [Presentation](https://reference.aspose.com/slides/python-net/aspose.slides/presentation/) .
- إنشاء المخطط الافتراضي.
- تعيين الصورة.
- أخذ السلسلة الأولى للمخطط.
- إضافة نقطة بيانات جديدة.
- كتابة العرض التقديمي إلى القرص.

في المثال الموضح أدناه، قمنا بضبط خيارات علامة المخطط على مستوى نقاط البيانات.
```py
import aspose.slides.charts as charts
import aspose.slides as slides
import aspose.pydrawing as draw

    # إنشاء نسخة من فئة Presentation class
    with slides.Presentation() as presentation:

        slide = presentation.slides[0]

        # إنشاء المخطط الافتراضي
        chart = slide.shapes.add_chart(charts.ChartType.LINE_WITH_MARKERS, 0, 0, 400, 400)

        # الحصول على فهرس ورقة عمل بيانات المخطط الافتراضية
        defaultWorksheetIndex = 0

        # الحصول على ورقة عمل بيانات المخطط
        fact = chart.chart_data.chart_data_workbook

        # حذف سلسلة العرض التوضيحية
        chart.chart_data.series.clear()

        # إضافة سلسلة جديدة
        chart.chart_data.series.add(fact.get_cell(defaultWorksheetIndex, 1, 1, "Series 1"), chart.type)
                
        # تعيين الصورة
        image1 = draw.Bitmap(path + "aspose-logo.jpg")
        imgx1 = presentation.images.add_image(image1)

        # تعيين الصورة
        image2 = draw.Bitmap(path + "Tulips.jpg")
        imgx2 = presentation.images.add_image(image2)

        # أخذ أول سلسلة في المخطط
        series = chart.chart_data.series[0]

        # إضافة نقطة جديدة (1:3) هناك.
        point = series.data_points.add_data_point_for_line_series(fact.get_cell(defaultWorksheetIndex, 1, 1, 4.5))
        point.marker.format.fill.fill_type = slides.FillType.PICTURE
        point.marker.format.fill.picture_fill_format.picture.image = imgx1

        point = series.data_points.add_data_point_for_line_series(fact.get_cell(defaultWorksheetIndex, 2, 1, 2.5))
        point.marker.format.fill.fill_type = slides.FillType.PICTURE
        point.marker.format.fill.picture_fill_format.picture.image = imgx2

        point = series.data_points.add_data_point_for_line_series(fact.get_cell(defaultWorksheetIndex, 3, 1, 3.5))
        point.marker.format.fill.fill_type = slides.FillType.PICTURE
        point.marker.format.fill.picture_fill_format.picture.image = imgx1

        point = series.data_points.add_data_point_for_line_series(fact.get_cell(defaultWorksheetIndex, 4, 1, 4.5))
        point.marker.format.fill.fill_type = slides.FillType.PICTURE
        point.marker.format.fill.picture_fill_format.picture.image = imgx2

        # تغيير علامة سلسلة المخطط
        series.marker.size = 15

        # حفظ العرض التقديمي إلى القرص
        presentation.save("MarkOptions_out.pptx", slides.export.SaveFormat.PPTX)
```


## **الأسئلة المتكررة**

**ما هي أشكال العلامات المتوفرة بشكل افتراضي؟**

الأشكال القياسية متوفرة (دائرة، مربع، معين، مثلث، إلخ)؛ القائمة معرفة بواسطة تعداد [MarkerStyleType](https://reference.aspose.com/slides/python-net/aspose.slides.charts/markerstyletype/) . إذا كنت بحاجة إلى شكل غير قياسي، استخدم علامة بملئ صورة لمحاكاة الرسومات المخصصة.

**هل تُحافظ العلامات عند تصدير المخطط إلى صورة أو SVG؟**

نعم. عند تحويل المخططات إلى [raster formats](/slides/ar/python-net/convert-powerpoint-to-png/) أو حفظ [shapes as SVG](/slides/ar/python-net/render-a-slide-as-an-svg-image/)، تحتفظ العلامات بمظهرها وإعداداتها، بما في ذلك الحجم والملئ والحد.
