We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to get the actual major unit amount of an axis when it is automatically calculated

We are working on converting charts in Excel to charts in PowerPoint using Aspose.Cells and Aspose.Slides. One problem is that the spacing of the axis labels that is automatically calculated differs in Excel vs PowerPoint. This value is called major unit, as we found with some digging. We can manually set the major unit in PowerPoint provided that we also set IsAutomaticMajorUnit to false:

ppAxis.IsAutomaticMajorUnit = false;
ppAxis.MajorUnit = 100;

However, the problem is that we haven’t been able to find how to get the major unit value from the Excel side when it is automatically calculated. Is there any way to do what we want? Thank you.

You may provide us runnable sample code, template file, program output file, images showing difference and expected output file for our testing. We will reproduce this issue here and provide assistance accordingly.