Caption: IBubbleChartCaption;
Caption: Prognoz.Platform.Interop.Chart.IBubbleChartCaption;
The Caption property returns parameters of bubble chart axis 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.
Sub UserProc;
Var
MB: IMetabase;
Eax: IEaxAnalyzer;
Bubble: IBubbleChart;
AxisCaption: IBubbleChartCaption;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//X axis title
AxisCaption := Bubble.AxisX.Caption;
AxisCaption.Text := "Capacity";
AxisCaption.Font := New GxFont.Create("Arial", 12);
AxisCaption.FontColor := GxColor.FromName("Red");
(Eax As IMetabaseObject).Save;
End Sub UserProc;
After executing the example caption parameters for the X axis of the bubble chart 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;
AxisCaption: 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
AxisCaption := Bubble.AxisX.Caption;
AxisCaption.Text := "Capacity";
FontCaption.Create("Arial", 12, GxFontStyle.gfsRegular, GxUnit.guPoint);
AxisCaption.Font := FontCaption;
AxisCaption.FontColor := GxColorCls.FromName("Red");
(Eax As IMetabaseObject).Save();
End Sub;
After executing the example caption parameters for the X axis of the bubble chart are changed. Font, color and text are determined for the caption.
See also: