mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 21:40:20 +02:00
TAChart: Add TListChartSource.SetYList procedure
git-svn-id: trunk@27119 -
This commit is contained in:
parent
1dd8d33568
commit
0fbee9a723
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user