Labels and Tick Marks on Left Axis

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
McMClark
Newbie
Newbie
Posts: 50
Joined: Thu Apr 15, 2004 4:00 am

Labels and Tick Marks on Left Axis

Post by McMClark » Mon Feb 27, 2006 8:39 pm

I am using Delphi 2005 And TeeChart 7.05. I have a form using a DBChart and I want to show a range of 0 through 5 on the left axis. I want the labels to increment every .5 value so that the labels read .5, 1, 1.5, 2, etc. I turned off the automatic scale. I put in the minimum value as 0 and the maximum value as 5 in the chart editor. I also set the desired increment to .5. The problem is that when it runs the .5 values do not appear. Can someone tell me if I have to change another setting or give me some code to force the left axis to appear as I want?

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 Feb 28, 2006 9:02 am

Hi McMClark,

It may help you setting LabelsSeparation to zero as done here:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  for i:=0 to 5 do Series1.Add(i);

  With Chart1.Axes.Left do
  begin
    SetMinMax(0,5);
    Increment:=0.5;
    LabelsSeparation:=0;
  end;
end;
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