CalendarLevel: DimCalendarLevel;
The CalendarLevel property returns calendar frequency for series.
This example describes custom method. The data series is passed by points.
Public Function UserFunc(Input: ITimeSeries): Double;
Var
i: Integer;
Begin
i := Input.CurrentIndex;
If Input.CalendarLevel = DimCalendarLevel.Year
Then Return Math.Log10(Input.Item(i));
Else Return Double.Nan
End If;
End Function UserFunc;
The method returns the natural series logarithm, if it contains the annual calendar frequency.
See also: