Y axis Labels around zero

TeeChart for ActiveX, COM and ASP
Post Reply
Slimmole
Newbie
Newbie
Posts: 1
Joined: Sun Dec 09, 2001 5:00 am
Contact:

Y axis Labels around zero

Post by Slimmole » Thu Jun 23, 2005 1:01 pm

Hi Support,
I have an issue using TChartAx5. If the range of my Y axis is 0.1 to 1 then I will see Y axis labels 0.1, 0.15, 0.2, 0.25 etc, this is good. However if the minimum value for my Y axis is zero or less then the Y axis labels only occur at integers, so in the above eaxmple (0 to1) I will only see 2 Y axis labels (0 and 1). I need to be a ble to the full decimal Y axis labels at all times.

Thanks In Advance

Slimmole

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 Jun 27, 2005 10:44 am

Hi Slimmole,

This depends on your chart object height. To force this behaviour you can use code below and increase chart's height.

Code: Select all

    With TChart1.Axis.Left
        .Increment = 0.5
        .Labels.Separation = 0
        .Labels.ValueFormat = "#.##,##"
    End With
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