Page 1 of 1

custom labels problem

Posted: Mon Aug 18, 2008 6:55 am
by 14048132

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?

Posted: Mon Aug 18, 2008 8:06 am
by Pep
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.