TAChart: Add TListChartSource.SetYList procedure

git-svn-id: trunk@27119 -
This commit is contained in:
ask 2010-08-17 10:01:41 +00:00
parent 1dd8d33568
commit 0fbee9a723

View File

@ -116,6 +116,7 @@ type
procedure Delete(AIndex: Integer); inline;
function IsSorted: Boolean; override;
function SetXValue(AIndex: Integer; AValue: Double): Integer;
procedure SetYList(AIndex: Integer; const AYList: array of Double);
procedure SetYValue(AIndex: Integer; AValue: Double);
procedure Sort;
published
@ -788,6 +789,16 @@ begin
SetLength(Item[i]^.YList, Max(FYCount - 1, 0));
end;
procedure TListChartSource.SetYList(
AIndex: Integer; const AYList: array of Double);
var
i: Integer;
begin
with Item[AIndex]^ do
for i := 0 to Min(High(AYList), High(YList)) do
YList[i] := AYList[i];
end;
procedure TListChartSource.SetYValue(AIndex: Integer; AValue: Double);
var
i: Integer;