Caption: IBubbleChartCaption;
Caption: Prognoz.Platform.Interop.Chart.IBubbleChartCaption;
The Caption property returns bubble chart caption parameters.
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;
BubbleCaption: IBubbleChartCaption;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//X axis caption
BubbleCaption := Bubble.Caption;
BubbleCaption.Text := "Change dynamics...";
BubbleCaption.Font := New GxFont.Create("Arial", 14, GxFontStyle.Bold);
BubbleCaption.FontColor := GxColor.FromName("Blue");
BubbleCaption.Visible := True;
(Eax As IMetabaseObject).Save;
End Sub UserProc;
After executing the example bubble chart caption parameters are changed. Font, color and text are determined for the caption.
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;
BubbleCaption: IBubbleChartCaption;
FontCaption: GxFont = New GxFontClass();
GxColorCls: GxColorClass = New GxColorClassClass();
Begin
MB := Params.Metabase;
Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//X axis caption
BubbleCaption := Bubble.Caption;
BubbleCaption.Text := "Change dynamics...";
FontCaption.Create("Arial", 14, GxFontStyle.gfsBold, GxUnit.guPoint);
BubbleCaption.Font := FontCaption;
BubbleCaption.FontColor := GxColorCls.FromName("Red");
BubbleCaption.Visible := True;
(Eax As IMetabaseObject).Save();
End Sub;
After executing the example bubble chart caption parameters are changed. Font, color and text are determined for the caption.
See also: