---
title: "Aspose::Cells::Charts::Axis::SetMinorUnitScale method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.charts/axis/setminorunitscale/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Charts::Axis::SetMinorUnitScale method. Represents the major unit scale for the category axis in C++."
---

## Axis::SetMinorUnitScale method


Represents the major unit scale for the category axis.

```cpp
void Aspose::Cells::Charts::Axis::SetMinorUnitScale(TimeUnit value)
```


## Examples


```cpp
chart.GetCategoryAxis().SetCategoryType(CategoryType::TimeScale);
chart.GetCategoryAxis().SetMinorUnitScale(TimeUnit::Months);
chart.GetCategoryAxis().SetMinorUnit(2);
```

## See Also

* Enum [TimeUnit](../../timeunit/)
* Class [Axis](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
