Free Support Forum - aspose.com

Resolve value of automatic MaxUnit and MinUnit

When a chart’s axis has MaxUnit and MinUnit set to automatic, I need a way to know what value is actually being used for these properties (like you can see in Excel when looking at an auto property). Something like .MaxUnitAutoValue or something like that. Is there any chance you guys can add this into the chart code?

Thanks,
Mike Gates

Hi,

If you want to know the automatic MaxUnit and MinUnit, please call chart.Calculate()method first, then you can simply get them by Axis.MajorUnit and Axis.MinorUnit API.


Thank you.

The good news is that this does in fact give me the correct MaxUnit and MinUnit. The bad news is that the .Calculate call messes up the chart image pretty bad. I have posted this problem at:
http://www.aspose.com/community/forums/230105/chart.calculate-messing-up-chart/showthread.aspx#230105

Hi Mike,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the feedback.

For you other thread, we have found the issue you mentioned regarding Chart.Calculate() and replied to your thread.

Thank You & Best Regards,