draw GridLines without Labels

TeeChart for ActiveX, COM and ASP
Post Reply
AHIS
Newbie
Newbie
Posts: 19
Joined: Wed Feb 22, 2006 12:00 am
Location: Austria

draw GridLines without Labels

Post by AHIS » Tue Jul 18, 2006 6:08 am

According to the help file "The Labels Visible property shows or hide Axis Labels. Set it to False to draw the Axis Ticks and / or Grid lines only."
But if I do so both the Labels AND Grid lines disappear! GridPen.Visible is set to true.
What do I do wrong? I just want to have vertical Grid lines but no label (I use customAxis by the way).

Harry

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 18, 2006 7:36 am

Hi Harry,

You can try doing something like this:

Code: Select all

Private Sub TChart1_OnGetAxisLabel(ByVal Axis As Long, ByVal SeriesIndex As Long, ByVal ValueIndex As Long, LabelText As String)
    If (Axis = 6) Then
        LabelText = ""
    End If
End Sub
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply