Page 1 of 1

How to Get Axis Rounded Value?

Posted: Wed Mar 11, 2009 11:06 am
by 15049432
If I turn on rounding on an axis minimum (say), is there a way to get the actual rounded minimum value used to draw the chart?

If not, I'll have to do my own rounding which is a bit of a pain.

Posted: Wed Mar 11, 2009 2:41 pm
by yeray
Hi Steve,

You could do as follows to calculate the minimum value drawn for the left axis:

Code: Select all

TChart1.Axis.Left.CalcPosPoint(TChart1.Axis.Left.IEndPos)