mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:55:58 +02:00
TAChart: Fix percentage calculation
git-svn-id: trunk@27146 -
This commit is contained in:
parent
be55a67eab
commit
54ee41a476
@ -1267,9 +1267,9 @@ var
|
|||||||
begin
|
begin
|
||||||
if not Percentage then exit;
|
if not Percentage then exit;
|
||||||
s := FItem.Y + Sum(FItem.YList);
|
s := FItem.Y + Sum(FItem.YList);
|
||||||
FItem.Y /= s / PERCENT;
|
FItem.Y /= s * PERCENT;
|
||||||
for i := 0 to High(FItem.YList) do
|
for i := 0 to High(FItem.YList) do
|
||||||
FItem.YList[i] /= s / PERCENT;
|
FItem.YList[i] /= s * PERCENT;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCalculatedChartSource.Changed(ASender: TObject);
|
procedure TCalculatedChartSource.Changed(ASender: TObject);
|
||||||
|
Loading…
Reference in New Issue
Block a user