Page 1 of 1
Axis Ticks with no Labels
Posted: Tue Dec 22, 2009 2:03 pm
by 10046032
Hello,
Is it possible to have an Axes to display only tick marks an no labels? It looks like when I set labels visible to false the ticks go away!!! I am using TeeChart 8.06
Regards
Re: Axis Ticks with no Labels
Posted: Tue Dec 22, 2009 2:47 pm
by narcis
Hi johnnix,
You could set labels to an empty string o a blank-spaced string in the OnGetAxisLabel event.
Re: Axis Ticks with no Labels
Posted: Wed Dec 23, 2009 7:16 am
by 10046032
Hello Narcis,
Thank you very much for your reply. I need to hide labels on Top and Right axes so I use the following code on the OnGetAxisLabel:
Code: Select all
if (TChartAxis(sender).ParentChart.RightAxis = TChartAxis(sender)) or
(TChartAxis(sender).ParentChart.TopAxis = TChartAxis(sender)) then
labeltext := '';
Is this correct?
Regards
Re: Axis Ticks with no Labels
Posted: Wed Dec 23, 2009 8:06 am
by narcis
Hi johnnix,
Yes, but there's no need to typecast Sender argument, for example:
Code: Select all
if (Sender = Sender.ParentChart.Axes.Right) or
(Sender = Sender.ParentChart.Axes.Top) then
LabelText := '';