Page 1 of 1

Tic Labeling Question

Posted: Wed Feb 15, 2006 2:41 pm
by 8572663
I am trying to develop a work around to the many problems with the TcolorGridSeries plot type. Specifically, because of the slow display update rate when IrregularGrid is set to true, I need to label the axis tics manually when ever they are drawn.

Setting the labels manually using the following code works just fine:

Chart1.Axes.Bottom.Items.add(i,Format('%-.2f',[x]));

However, if I add a label for evey element, a repaint will attempt to draw them all.

Question: Is there a way to add labels only for the large (or major tic marks) Tics that are currently display on the screen? I will need to handle this for zooms and pans as well.

Thank you in advance.

Posted: Mon Feb 20, 2006 10:19 am
by Pep
Hi,

why you don't use the OnGetAxisLabel or the OnGetNextAxisLabel events ?
Plase see the Help for details.