Custom Axis Visibility Issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Custom Axis Visibility Issue

Post by tirby » Thu Nov 12, 2015 3:34 pm

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?
Attachments
Test.Zip
(165.11 KiB) Downloaded 712 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Custom Axis Visibility Issue

Post by Christopher » Fri Nov 13, 2015 3:18 pm

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
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Re: Custom Axis Visibility Issue

Post by tirby » Fri Nov 13, 2015 6:55 pm

Thank you Christopher,

That's exactly what I needed!

Post Reply