Page 1 of 1

zero data and the horizontal axis

Posted: Mon Sep 22, 2008 9:09 pm
by 14580
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

Posted: Tue Sep 23, 2008 10:05 am
by narcis
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

Posted: Wed Sep 24, 2008 6:51 pm
by 14580
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

Posted: Wed Sep 24, 2008 6:57 pm
by 14580
I figured it out. I set increment = 1 and it works perfectly now.
Thanks.

Thuy