Zooming and function
Posted: Wed May 05, 2004 4:38 pm
I use TaverageTeeFunction function. It calculates an average value for all the series. But after zooming the value doesn’t change. Can the function work with zooming?
Steema Software - Customer Support Forums
https://974310.kinnakethk.tech/
Code: Select all
procedure ConstructAvg(Source: TChartSeries; first,last: Integer; AvgFun: TAverageTeeFunction);
var avg: double;
begin
avg := AvgFun.Calculate(Source,first,last);
with AvgFun.ParentSeries do
begin
Clear;
AddXY(Source.XValues[first],avg);
AddXY(Source.XValues[last],avg);
end;
end;