custom labels problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Chris.CHWU
Newbie
Newbie
Posts: 57
Joined: Wed Jan 30, 2008 12:00 am

custom labels problem

Post by Chris.CHWU » Mon Aug 18, 2008 6:55 am

Code: Select all

Public Class Form11

    Private Sub Form11_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim lines As New Steema.TeeChart.Styles.Line
        TChart1.Series.Add(lines)
        lines.Add(0, 3)
        lines.Add(1, 4)
        lines.Add(2, 5)
        lines.Add(3, 6)

        Dim labels As Steema.TeeChart.AxisLabelsItems = TChart1.Axes.Bottom.Labels.Items
        For i As Integer = 0 To 3 Step 1
            labels.Add(i, "A" & i)
        Next
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.TChart1.Axes.Bottom.Labels.Visible = False
    End Sub
End Class
When running the code, the bottom axis labels = "A0 A1 A2 A3".

But, when I click button1, the labels still display on the chart.

Would you solve this problem?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Aug 18, 2008 8:06 am

Hello,

this is already on our bug/wish list to be considered for further releases, allow to reset, hide/show the custom axis labels manually.

Post Reply