having axis features, but not showing labels.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
andyb
Newbie
Newbie
Posts: 8
Joined: Tue Feb 01, 2005 5:00 am

having axis features, but not showing labels.

Post by andyb » Fri Mar 17, 2006 1:05 pm

Hi,

I want to have the grid features, and be able to draw a line at a value, but i don't want to be able to see the axis labels (values). I think that this means I can't use "tChart1->Axes->Bottom->Labels->Visible = false;", because that removes the grid, and when i use the same on the left axis, it stops colorLine from working

Code: Select all

tChart1->Aspect->View3D = false;
tChart1->Axes->Bottom->Automatic = false;
tChart1->Axes->Bottom->Inverted = true;
tChart1->Axes->Bottom->Increment = 60;

// can't use...
// tChart1->Axes->Bottom->Labels->Visible = false;
Could you help?

Cheers,

Andy

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

Post by Narcís » Mon Mar 20, 2006 8:59 am

Hi Andy,

Then you can try with GetAxisLabel event and set the LabelText to an empty string, i.e.:

Code: Select all

    private void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
    {
      if (sender=tChart1.Axes.Bottom)
      {
        e.LabelText = "";
      }
    }
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