Page 1 of 1

Labels and Tick Marks on Left Axis

Posted: Mon Feb 27, 2006 8:39 pm
by 9337074
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?

Posted: Tue Feb 28, 2006 9:02 am
by narcis
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;