How to Get Axis Rounded Value?

TeeChart for ActiveX, COM and ASP
Post Reply
LAL
Newbie
Newbie
Posts: 40
Joined: Fri Jun 20, 2008 12:00 am

How to Get Axis Rounded Value?

Post by LAL » Wed Mar 11, 2009 11:06 am

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.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Mar 11, 2009 2:41 pm

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)
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply