Logarithmic X-axis

TeeChart for ActiveX, COM and ASP
Post Reply
ModelTech
Newbie
Newbie
Posts: 28
Joined: Tue Oct 09, 2007 12:00 am

Logarithmic X-axis

Post by ModelTech » Mon Dec 17, 2007 2:04 pm

Hi,

I'm using TeeChart v.8 with VBScript.
I try to logarothmic set X-axis as follows:

Code: Select all

Chart1.Axis.Bottom.Logarithmic = True
Chart1.Axis.Bottom.LogarithmicBase=10
It works well, but axis labels are not in powers of 10.
So, it looks like: 0.14 0.16 0.18 ...
And I want to get something like: 10^0 10^1 10^2 ...

Is it possible with TeeChart v.8 ?

Thanks in advance,
Danila.

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

Post by Narcís » Mon Dec 17, 2007 2:58 pm

Hi Danila,

Using this code:

Code: Select all

    For i = 0 To 100000
        TChart1.Series(0).AddXY i, Rnd, "", clTeeColor
    Next
    
    TChart1.Axis.Bottom.Logarithmic = True
    TChart1.Axis.Bottom.LogarithmicBase = 10
I get those labels: 1, 10, 100, 1000, 10000 and 100000.

If the problem persists could you please send us a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.
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