Pie Chart
Contents
[
Hide
]
Second Plot Options for Pie of Pie and Bar of Pie Chart
Aspose.Slides for C++ now supports, second plot options for Pie of Pie or Bar of Pie chart. In this topic, we will see with example how to Specify these options using Aspose.Slides. In order to specify the properties. Please follow the steps below:
- Instantiate Presentation class object.
- Add chart on the slide.
- Specify the second plot options of chart.
- Write presentation to disk.
In the example given below, we have set different properties of Pie of Pie chart.
Set Automatic Pie Chart Slice Colors
Aspose.Slides for C++ provides a simple API for setting automatic pie chart slide colors. The sample code applies setting the above said properties.
- Create an instance of the Presentation class.
- Access first slide.
- Add chart with default data.
- Set chart Title.
- Set first series to Show Values.
- Set the index of chart data sheet.
- Getting the chart data worksheet.
- Delete default generated series and categories.
- Add new categories.
- Add new series.
Write the modified presentation to a PPTX file.