Page 1 of 1

Constant number of divisions or ticks on axis

Posted: Mon Nov 01, 2004 3:26 pm
by 9524472
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.

Posted: Tue Nov 02, 2004 11:51 am
by Pep
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.