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
http://teechart.com/support/
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;