mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 14:59:15 +02:00
TAChart: Fix distance demo not displaying fit results any more.
git-svn-id: trunk@60985 -
This commit is contained in:
parent
78857f4559
commit
93c0be69fd
@ -227,6 +227,12 @@ begin
|
||||
UseMax := true;
|
||||
end;
|
||||
end;
|
||||
|
||||
chFitFitSeries1.Active := true;
|
||||
chFitFitSeries1.ExecFit;
|
||||
if chFitFitSeries1.ErrorMsg <> '' then
|
||||
AText := chFitFitSeries1.ErrorMsg
|
||||
else
|
||||
case rgFitParamCount.ItemIndex of
|
||||
0: AText := Format('Mean value: %f', [chFitFitSeries1.Param[0]]);
|
||||
1: AText := Format('Slope: %f', [chFitFitSeries1.Param[1]]);
|
||||
@ -240,7 +246,6 @@ begin
|
||||
Param[0] - Sqr(Param[1])/(4 * Param[2])
|
||||
]);
|
||||
end;
|
||||
chFitFitSeries1.Active := true;
|
||||
|
||||
lblFit.Visible := true;
|
||||
lblFit.Caption := AText;
|
||||
|
Loading…
Reference in New Issue
Block a user