Constant number of divisions or ticks on axis

TeeChart for ActiveX, COM and ASP
Post Reply
Angelo
Newbie
Newbie
Posts: 10
Joined: Tue Oct 05, 2004 4:00 am

Constant number of divisions or ticks on axis

Post by Angelo » Mon Nov 01, 2004 3:26 pm

Is there an option to have always an axis subdivided for constant number ?

Example: Suppose I want the left Axis always to have 4 divisions, as for values between 0 and 100, the ticks will be located at 0,25,50,75 and 100.

I could see that the axis has the option to setup a desired step(no automatic). But this is supposed to be used when you know the values you are plotting in advance, which it is not the case sometimes. So it would be cool if Teechart automatically adjust the axis ticks to always have the same number of divisions for the axis.


Angelo.

Pep
Site Admin
Site Admin
Posts: 3305
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Nov 02, 2004 11:51 am

Hi Angelo,

you should be able to do this using the Increment property. Also you can calculate the increment and set a Min and Max values (using SetMinMax method). I suggest you do this in the OnBeforeDrawChart event.

Post Reply