Page 1 of 1

having axis features, but not showing labels.

Posted: Fri Mar 17, 2006 1:05 pm
by 8128839
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

Posted: Mon Mar 20, 2006 8:59 am
by narcis
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 = "";
      }
    }