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;
Logarithmic, TeeMsg_AxisLogNotPositive and AdjustMaxMin
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |