Page 1 of 1

Axes Logarithmic Problem

Posted: Fri Sep 19, 2008 8:05 am
by 14048132
Greetings.

Code: Select all

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim line As New Steema.TeeChart.Styles.Line(TChart1.Chart)

        line.Add(0, 0.00001)
        line.Add(1, 0.00000000001)

        TChart1.Axes.Left.Labels.ValueFormat = "0.00e000"

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim line As New Steema.TeeChart.Styles.Line(TChart2.Chart)

        line.Add(0, 0.00001)
        line.Add(1, 0.00000000001)

        TChart2.Axes.Left.Labels.ValueFormat = "0.00e000"
        TChart2.Axes.Left.Logarithmic = True
    End Sub
In TChart2, I got the left-axis labels: 1.00e-005, 1.00e-006, 0.00e000, 0.00e000, 0.00e000, 0.00e000, 0.00e000.
But what I expected should be 1.00e-005, 1.00e-006, 1.00e-007, 1.00e-008, 1.00e-009, 1.00e-010 ...

Any ideas about such cases? Thanks in advance!

Posted: Fri Sep 19, 2008 8:36 am
by narcis
Hi Chris,

Thanks for reporting. I've added the defect (TF02013407) to the bug list to be fixed for next releases. In the meantime, the only solution I can think of is manually customizing left axis labels in the GetAxisLabel event.