ChartDataSecondaryCategories Property

Gets the secondary categories if UseSecondaryCategories property is true. Read-only IChartCategoryCollection.

Namespace:  Aspose.Slides.Charts
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
public IChartCategoryCollection SecondaryCategories { get; }

Property Value

Type: IChartCategoryCollection

Implements

IChartDataSecondaryCategories
Remarks
If UseSecondaryCategories property is false then this SecondaryCategories property return null and data in Categories property is used both for primary and secondary series. If UseSecondaryCategories property is true then data in this SecondaryCategories property is used for secondary series and data in Categories property is used for primary series.
Examples
Example. What categories are related to series - ChartData.Categories or ChartData.SecondaryCategories?
if (series.PlotOnSecondAxis && series.Chart.ChartData.UseSecondaryCategories)
{
    // related categories are series.Chart.ChartData.SecondaryCategories
}
else
{
    // related categories are series.Chart.ChartData.Categories
}
See Also