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);
TimeUnit majorUnitScale = chart.GetCategoryAxis().GetMajorUnitScale(); //get
chart.GetCategoryAxis().SetMajorUnitScale(majorUnitScale); //set
chart.GetCategoryAxis().SetMajorUnit(2);
See Also
- Enum TimeUnit
- Class Axis
- Namespace Aspose::Cells::Charts
- Library Aspose.Cells for C++