---
title: "Working with Charts in C++"
---


New [InsertChart](https://reference.aspose.com/words/cpp/aspose.words/documentbuilder/insertchart/) method was added into the [DocumentBuilder](https://reference.aspose.com/words/cpp/aspose.words/documentbuilder/) class. So, let's see how to insert a simple column chart into the document using the [InsertChart](https://reference.aspose.com/words/cpp/aspose.words/documentbuilder/insertchart/) method.

## How to Insert a Chart

In this section we will learn how to insert a chart into a document.

### Insert Column Chart

The following example shows how to insert column chart:

![create-column-chart-aspose-words-cpp](working-with-charts-1.png)

There are four different overloads for series Add method, which was exposed to cover all possible variants of data sources for all chart types:

![create-column-chart-from-datasource-aspose-words-cpp](working-with-charts-2.png)

### Insert Scatter Chart

The following example shows how to insert a scatter chart:

![scatter-chart-aspose-words-cpp](working-with-charts-3.png)

### Insert Area Chart

The following example shows how to insert an area chart:

![area-chart-aspose-words-cpp](working-with-charts-4.png)

### Insert Bubble Chart

The following example shows how to insert a bubble chart:

![bubble-chart-aspose-words-cpp](working-with-charts-5.png)

## See Also

For more information, see also the child articles.
