Originally shared by David Berneda
Originally shared by David Berneda
Preview: All TeeChart "functions" (56 statistical, financial and mathematical algorithms), can now be used with TDataItem data (no chart series are necessary !) Code is very small:
var MyFunction : TDataFunction; MyFunction:=TDataFunction.CreateFunction(TExpMovingAverage);
MyFunction.Source := BIGrid1.Data; // <-- can be any TDataItem
BIGrid2.Data:=TDataItem.Create(MyFunction);
TeeChart Functions have their own specialized parameters, for this example using an Exponential Moving Average:
MyFunction.Period := 10; // average last 10th data values
Comments
Post a Comment