Logarithmic, TeeMsg_AxisLogNotPositive and AdjustMaxMin

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
fnn
Newbie
Newbie
Posts: 10
Joined: Fri Nov 15, 2002 12:00 am

Logarithmic, TeeMsg_AxisLogNotPositive and AdjustMaxMin

Post by fnn » Mon Feb 06, 2006 12:49 pm

Hello
İf AChartAxis.Minimum or AChartAxis.Maximum is already negative (not
Automatic).
setting AChartAxis.Logarithmic:=true;
raises TeeMsg_AxisLogNotPositive exception.

In procedure:
Procedure TChartAxis.SetLogarithmic(Value:Boolean);
Begin
if Value and IsDateTime then
Raise AxisException.Create(TeeMsg_AxisLogDateTime);

if Value then
begin
{
in AdjustMaxMin
FLogarithmic is false, but value is true.
I want to set Logarithmic is true.
But IMinimum and IMaximum do not change, even if IMinimum is less than
zero.
I think no exception should raise.
Just make IMinimum:=0, if IMinimum<0 (as Automatic)
}
AdjustMaxMin;
if ((IMinimum<0) or (IMaximum<0)) then
Raise AxisException.Create(TeeMsg_AxisLogNotPositive);
end;

ParentChart.SetBooleanProperty(FLogarithmic,Value);
SetCalcPosValue;
end;

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 Feb 06, 2006 1:14 pm

Hello,

I've been able to reproduce that. It also happens when the axis is set to automatic. I added your request to our wish-list to be considered for future releases.
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