UseSecondaryCategories

IChartData.UseSecondaryCategories property

If false then SecondaryCategories property return null and data in Categories property is used both for primary and secondary series. If true then data in SecondaryCategories property is used for secondary series and data in Categories property is used for primary series. Read/write Boolean.

public bool UseSecondaryCategories { get; set; }

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