TChartSeries.BeginUpdate
TChartSeries
procedure BeginUpdate;
Unit
TeEngine
Description
See also the TChartSeries.EndUpdate method.
These methods can be used when adding or modifying many values at once at a source Series to recalculate the function just one time, when finished adding points.
Example (assumes Series3 to be a function Series (eg. average))
procedure TForm1.BitBtn1Click(Sender: TObject);
var i:integer;
begin
//Set Function Period
Series3.FunctionType.Period := 3;
//Begin Update
Series3.FunctionType.BeginUpdate;
//Add Series points
For i := 0 To 500 do
Begin
Series1.AddXY(Series1.Count, 500 * Random(1000) );
Series2.AddXY(Series2.Count, 500 * Random(1000) );
end;
//End update and display function Series
Series3.FunctionType.EndUpdate
end;