zero data and the horizontal axis

TeeChart for ActiveX, COM and ASP
Post Reply
SpongeBob
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am

zero data and the horizontal axis

Post by SpongeBob » Mon Sep 22, 2008 9:09 pm

Hi,

When I have zero for my data, I get a chart with a horizontal axis drawn in the middle. Is there a way to move the horizontal axis and the number zero to the bottom instead of the middle of the chart? I'd like to have the origin (with number zero) at the bottom left corner.

Thanks.

Thuy

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

Post by Narcís » Tue Sep 23, 2008 10:05 am

Hi Thuy,

The only solution I can think of is manually setting axes min and max values manually:

Code: Select all

    TChart1.Axis.Left.SetMinMax 0, 0
    TChart1.Axis.Bottom.SetMinMax 0, 0
You can set them to automatic when you populate your series:

Code: Select all

    TChart1.Axis.Left.Automatic = True
    TChart1.Axis.Bottom.Automatic = True
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

SpongeBob
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am

Post by SpongeBob » Wed Sep 24, 2008 6:51 pm

Thank you. It worked, but now I have 5 zeros on top of each other on the left axis. I'd like to have only one zero at the bottom. Is there a way to do this.

Thanks again.

Thuy

SpongeBob
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am

Post by SpongeBob » Wed Sep 24, 2008 6:57 pm

I figured it out. I set increment = 1 and it works perfectly now.
Thanks.

Thuy

Post Reply