---
title: "C++でのChartSeriesの操作"
---

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)

## `ChartSeries`の単一ChartDataPointを操作する方法

[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)
