TAChart: Fix percentage calculation

git-svn-id: trunk@27146 -
This commit is contained in:
ask 2010-08-19 10:43:02 +00:00
parent be55a67eab
commit 54ee41a476

View File

@ -1267,9 +1267,9 @@ var
begin
if not Percentage then exit;
s := FItem.Y + Sum(FItem.YList);
FItem.Y /= s / PERCENT;
FItem.Y /= s * PERCENT;
for i := 0 to High(FItem.YList) do
FItem.YList[i] /= s / PERCENT;
FItem.YList[i] /= s * PERCENT;
end;
procedure TCalculatedChartSource.Changed(ASender: TObject);