Chart Data Marker

Set Chart Marker

Aspose.Slides for C++ provides a simple API to set the chart series marker automatically. In the following feature, every chart series will get different default marker symbol automatically.

Below code example shows how to set the chart series marker automatically.

Set Chart Marker Options

The markers can be set on chart data points inside a particular series. In order to set chart marker options. Please follow the steps below:

  • Instantiate Presentation class.
  • Creating the default chart.
  • Set the picture.
  • Take the first chart series.
  • Add a new data point.
  • Write a presentation to disk.

In the example given below, we have set the chart marker options on data points level.

Set Chart Marker on Series Data Point Level

Now, the markers can be set on chart data points inside a particular series. In order to set chart marker options. Please follow the steps below:

  • Instantiate Presentation class.
  • Creating the default chart.
  • Set the picture.
  • Take the first chart series.
  • Add a new data point.
  • Write a presentation to disk.

In the example given below, we have set the chart marker options on data points level.

Apply Color to Data Points

You can apply color to data points in the chart using Aspose.Slides for C++. IChartDataPointLevelsManager and IChartDataPointLevel classes have been added to get access to properties of data point levels. This article demonstrates how you can access and apply color to data points in a chart.