Page 1 of 1

Logarithmic X-axis

Posted: Mon Dec 17, 2007 2:04 pm
by 15046980
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.

Posted: Mon Dec 17, 2007 2:58 pm
by narcis
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.