TimeLine: IBubbleChartTimeLine;
TimeLine: Prognoz.Platform.Interop.Chart.IBubbleChartTimeLine;
The TimeLine property returns parameters of bubble chart timeline.
Executing the example requires an express report with the EXPRESS_REPORT identifier. The express report is set up to ensure bubble chart displaying and operation.
Sub UserProc;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Bubble: IBubbleChart;
TimeLine: IBubbleChartTimeLine;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
TimeLine := Bubble.TimeLine;
TimeLine.Margin := New GxRectF.Create(5, 5, 5, 5);
TimeLine.Padding := 5;
TimeLine.MoveTime := 300;
TimeLine.StopTime := 700;
TimeLine.ReturnToInitialState := True;
TimeLine.BorderColor := GxColor.FromName("Red");
TimeLine.BorderRadius := 5;
TimeLine.BorderThickness := 2;
(Eax As IMetabaseObject).Save;
End Sub UserProc;
After executing the example bubble chart timeline parameters are changed. The following parameters are determined: the time of moving form one time point to another, duration of delay in a time point, and after the animation is finished, the slider will return to the beginning of the timeline. The timeline will have a red border two pixels wide, margins and paddings are set to five pixels.
Executing the example requires an express report with the EXPRESS_REPORT identifier. The express report is set up to ensure bubble chart displaying and operation. The specified procedure is an entry point for a .NET assembly.
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Bubble: IBubbleChart;
TimeLine: IBubbleChartTimeLine;
MarginRect: GxRectF = New GxRectFClass();
GxColorCls: GxColorClass = New GxColorClassClass();
Begin
MB := Params.Metabase;
Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
TimeLine := Bubble.TimeLine;
MarginRect.Create(5, 5, 5, 5);
TimeLine.Margin := MarginRect;
TimeLine.Padding := 5;
TimeLine.MoveTime := 300;
TimeLine.StopTime := 700;
TimeLine.ReturnToInitialState := True;
TimeLine.BorderColor := GxColorCls.FromName("Red");
TimeLine.BorderRadius := 5;
TimeLine.BorderThickness := 2;
(Eax As IMetabaseObject).Save();
End Sub;
After executing the example bubble chart timeline parameters are changed. The following parameters are determined: the time of moving form one time point to another, duration of delay in a time point, and after the animation is finished, the slider will return to the beginning of the timeline. The timeline will have a red border two pixels wide, margins and paddings are set to five pixels.
See also: