Page 1 of 1

Custom Axis Visibility Issue

Posted: Thu Nov 12, 2015 3:34 pm
by 13052810
Hi,

I'm using:
TeeChart.Net Version 3.5.3371.26406
VS2010 - VB.Net
Window 7-32bit

When I un-check a series (FastLine), the associated custom axis labels are automatically set to invisible.
I also need the Title and axis line to become invisible as well.

Image SS1.png shows the result of un-checking a trace.
Image SS2.png shows what I need it to look like.
SS2.png was achieved by accessing the Editor and setting setting the Custom0, Custom1, & Custom2 axes on the Panel to Invisible. (See SS3.png)

I have included these 3 screenshots in the project that I uploaded.

Can you assist?

Re: Custom Axis Visibility Issue

Posted: Fri Nov 13, 2015 3:18 pm
by Christopher
Hello,

You could try something like this:

Code: Select all

    TChart1.Axes.Bottom.Increment = cc
    AddHandler TChart1.BeforeDrawAxes, AddressOf BeforeDraw
    TChart1.Draw()

  End Sub

  Private Sub BeforeDraw(sender As Object, g As Graphics3D)
    TChart1.AutoRepaint = False
    For i = 0 To 2
      If (TChart1.Series(i).CustomVertAxis IsNot Nothing) Then
        TChart1.Series(i).CustomVertAxis.Visible = TChart1.Series(i).Active
      End If
    Next i
    TChart1.AutoRepaint = True
  End Sub

Re: Custom Axis Visibility Issue

Posted: Fri Nov 13, 2015 6:55 pm
by 13052810
Thank you Christopher,

That's exactly what I needed!