Increment LeftAxis change shows NO reaction

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JLoewner
Newbie
Newbie
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am
Location: Muenster, Germany
Contact:

Increment LeftAxis change shows NO reaction

Post by JLoewner » Thu Feb 26, 2004 9:33 am

Hi folks,

After a long time I have to use TEE again and need to change some

Code of an old program. I ran into the following

URGENT Problem:

Resizing increment of LeftAxishas NO effect.

All automatic is OFF.

Code used is:

procedure TMainForm.setupGraphSpannung;

var

i: Integer;

begin

with Chart do begin

LeftAxis.Minimum := 0;

LeftAxis.Maximum := 230;

LeftAxis.Minimum := 210;

LeftAxis.Increment := 5;

LeftAxis.Title.Caption:='V';

Title.Text.Clear;

Title.Text.Add('Verlauf Netzspannung');

end;

ShowOldDataOnChart;

end;



procedure TMainForm.setupGraphLuftdruck;

var

i: Integer;

begin

with Chart do begin

LeftAxis.Minimum := 0;

LeftAxis.Maximum := 1200;

LeftAxis.Minimum := 800;

LeftAxis.Increment := 50.0;

LeftAxis.Title.Caption:='mbar';

Title.Text.Clear;

Title.Text.Add('Verlauf Luftdruck');

end;

ShowOldDataOnChart;

end;



Left Axis increment sticks to its old value.

What could be wrong?

By the way: the setting of max/min works fine!

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu Feb 26, 2004 10:19 am

Hi.

Which TeeChart version are you using ? Also, how big is the chart ? Looking at your setup in first case chart should display only (230-210)/5 = four labels. This by itself should not be problematic i.e. there should be enough space for all four axis labels. Does it help if you change axis label separation ?

If possible, can you send me small sample application which demonstrates this problem ? You can send it to marjan at steema dot email address (sources only)
Marjan Slatinek,
http://www.steema.com

Post Reply