---
title: "การทำงานกับChartSeriesในC++"
---

Aspose.Wordsอนุญาตให้ผู้ใช้สามารถทำงานกับChartSeriesCollectionในไม่กี่วิธี.

## การทำงานกับChartSeriesCollectionของแผนภูมิ

ลองดูใน[ChartSeries](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartseries/)คอลเลกชัน ชุดแผนภูมิทั้งหมดสามารถใช้ได้ผ่าน[ChartSeriesCollection](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartseriescollection/):

{{< gist "aspose-words-gists" "d55d8631947d283b1f0da99afa06c492" "cpp-Programming-Documents-Charts-CreateColumnChart-ChartSeriesCollection.cpp" >}}

## การทำงานกับชั้นเดียวChartSeries

นี่คือวิธีการทำงานกับชุดโดยเฉพาะอย่างยิ่ง:

{{< gist "aspose-words-gists" "d55d8631947d283b1f0da99afa06c492" "cpp-Programming-Documents-Charts-WorkWithSingleChartSeries-WorkWithSingleChartSeries.cpp" >}}

โปรดดูผลลัพธ์ด้านล่าง:

![work-with-chartseries-aspose-words-cpp-1](working-with-chartseries-1.png)

ทั้งหมดเดียว[ChartSeries](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartseries/)มีค่าเริ่มต้น[ChartDataPoint](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartseries/get_datapoints/)ตัวเลือก,โปรดลองใช้รหัสต่อไปนี้เพื่อเปลี่ยนพวกเขา:

{{< gist "aspose-words-gists" "d55d8631947d283b1f0da99afa06c492" "cpp-Programming-Documents-Charts-WorkWithSingleChartSeries-ChartDataPoint.cpp" >}}

![work-with-chartseries-aspose-words-cpp-2](working-with-chartseries-2.png)

## วิธีการทำงานกับเดียวChartDataPointของ`ChartSeries`

โดยใช้[ChartDataPoint](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartdatapoint/)คุณสามารถปรับแต่งการจัดรูปแบบของจุดข้อมูลเดียวของชุดแผนภูมิ:

{{< gist "aspose-words-gists" "d55d8631947d283b1f0da99afa06c492" "cpp-Programming-Documents-Charts-WorkWithSingleChartDataPoint-WorkWithSingleChartDataPoint.cpp" >}}

โปรดดูผลลัพธ์ด้านล่าง:

![work-with-chartseries-aspose-words-cpp-3](working-with-chartseries-3.png)
