Labels and Tick Marks on Left Axis
Labels and Tick Marks on Left Axis
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?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi McMClark,
It may help you setting LabelsSeparation to zero as done here:
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 |
Instructions - How to post in this forum |