Decades on Logarithmic Axis?

TeeChart for ActiveX, COM and ASP
Post Reply
ellab_user
Newbie
Newbie
Posts: 12
Joined: Fri Mar 19, 2004 5:00 am

Decades on Logarithmic Axis?

Post by ellab_user » Thu Feb 09, 2006 2:52 pm

When setting an axis to logarithmic, the grid spacing just gets smaller and smaller until max or min and shows values between decades. A logarithmic chart usually decreases grid spacing within decades and shows only decade values. Is there any way to achieve this?
Thanks

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

Post by Narcís » Thu Feb 09, 2006 3:08 pm

Hi ellab_user,

Using TeeChart Pro v7.0.0.6 ActiveX and the code below I cannot see what you report. Could you please tell me which TeeChart version you are using and what we should do to reproduce the problem here? If you want you can post an example or a screen-shot at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Code: Select all

Private Sub Form_Load()
    TChart1.Series(0).FillSampleValues 1000
    TChart1.Axis.Left.Logarithmic = True
End Sub
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

ellab_user
Newbie
Newbie
Posts: 12
Joined: Fri Mar 19, 2004 5:00 am

Post by ellab_user » Thu Feb 09, 2006 3:31 pm

I'm using TeeChart ActiveX version 6

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

Post by Narcís » Thu Feb 09, 2006 4:34 pm

Hi ellab_user,

I'm unable to reproduce this problem here using latest v6 version. Could you please send us an example we can run "as-is" or a screen-shot of the problem you are reporting?

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

ellab_user
Newbie
Newbie
Posts: 12
Joined: Fri Mar 19, 2004 5:00 am

Post by ellab_user » Fri Feb 10, 2006 7:45 am

This is basically how we want it to look:
http://www.123hjemmeside.dk/walleco/2332302?i=2824926

This is what we get with TeeChart
http://www.123hjemmeside.dk/walleco/2332302?i=2824929

I hope this helps

Thanks

ellab_user
Newbie
Newbie
Posts: 12
Joined: Fri Mar 19, 2004 5:00 am

Post by ellab_user » Fri Feb 10, 2006 7:46 am

This is basically how we want it to look:
http://www.123hjemmeside.dk/walleco/2332302?i=2824926

This is what we get with TeeChart
http://www.123hjemmeside.dk/walleco/2332302?i=2824929

I hope this helps

Thanks

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 Feb 10, 2006 10:18 am

Hi ellab_user,

I've posted an image of what I get trying to reproduce the wrong chart you posted. The image I posted is at the attachments newsgroup ([url]news://www.steema.net/steema.public.attachments[/url]) and the message subject is the same as this forums thread. Could you please check it?
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

ellab_user
Newbie
Newbie
Posts: 12
Joined: Fri Mar 19, 2004 5:00 am

Post by ellab_user » Fri Feb 10, 2006 11:16 am

Our ISP news server does not seem to have news://www.steema.net/steema.public.attachments

Is there any other free news server that may carry it?

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 Feb 10, 2006 11:43 am

Hi ellab_user,

You just need to configure your newsreader with www.steema.net being a news server. All the settings are default ones. Then subscribe to the attachments newsgroup.
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

ellab_user
Newbie
Newbie
Posts: 12
Joined: Fri Mar 19, 2004 5:00 am

Post by ellab_user » Fri Feb 10, 2006 1:46 pm

OK - I'm not sure what was giving the problem before, but i used the for loop to add data, and now i get the decades :D . Is there any way to show grid lines between the decade grid lines?
Thanks

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 Feb 10, 2006 2:59 pm

Hi ellab_user,

Yes, you can use:

Code: Select all

Private Sub Form_Load()
    Dim NumPoints As Integer

    TeeCommander1.Chart = TChart1

    NumPoints = 10
    For i = 0 To NumPoints
        TChart1.Series(0).Add (NumPoints - i) * (NumPoints - i), "", clTeeColor
    Next

    With TChart1.Axis.Left
        .SetMinMax 0, 1000
        .Logarithmic = True
        .MinorGrid.Visible = True
        .MinorGrid.Color = .GridPen.Color
        .MinorGrid.Style = .GridPen.Style
        .MinorTickCount = 10
    End With
End Sub
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