Aspose::Cells::Charts::Axis::SetMajorUnitScale method

Axis::SetMajorUnitScale method

Represents the major unit scale for the category axis.

void Aspose::Cells::Charts::Axis::SetMajorUnitScale(TimeUnit value)

Examples

chart.GetCategoryAxis().SetCategoryType(CategoryType::TimeScale);
chart.GetCategoryAxis().SetMajorUnitScale(TimeUnit::Months);
chart.GetCategoryAxis().SetMajorUnit(2);

See Also