Working with Charts

New InsertChart method was added into the DocumentBuilder class. So, let’s see how to insert a simple column chart into the document using the 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

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

Insert Scatter Chart

The following example shows how to insert a scatter chart:

scatter-chart-aspose-words-cpp

Insert Area Chart

The following example shows how to insert an area chart:

area-chart-aspose-words-cpp

Insert Bubble Chart

The following example shows how to insert a bubble chart:

bubble-chart-aspose-words-cpp

See Also

For more information, see also the child articles.