Axes Logarithmic 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

Axes Logarithmic Problem

Post by Chris.CHWU » Fri Sep 19, 2008 8:05 am

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!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 19, 2008 8:36 am

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

Post Reply