Page 1 of 1

axis increment

Posted: Sat Dec 11, 2004 9:24 pm
by 8437783
we want to write code that will put axis labels at defined increments. what we tried was:

chart1.leftaxis.increment:=5;
and this does not seem to work. The increment changes fine in the charteditor, but not in code.

Natalie

Posted: Mon Dec 13, 2004 7:04 am
by Pep
Hi Natalie,

setting the increment as you've done should work fine, but maybe the problem is that there's not enought space to display all the labels. In case you want to display a specific labels the best way is to add custom axis labels. You can see one example which shows how to do this in the TeeChart Pro Demo features project.