IBubbleChart.Caption

Fore Syntax

Caption: IBubbleChartCaption;

Fore.NET Syntax

Caption: Prognoz.Platform.Interop.Chart.IBubbleChartCaption;

Description

The Caption property returns parameters of the bubble chart title.

Fore Example

Executing this example requires an express report with the EXPRESS_REPORT identifier. The express report is configured 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 title
    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 parameters of the bubble chart title are changed. Font, color and text are defined for the title.

Fore.NET Example

Executing this example requires an express report with the EXPRESS_REPORT identifier. The express report is configured to ensure bubble chart displaying and operation. This 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 title
    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 parameters of the bubble chart title are changed. Font, color and text are defined for the title.

See also:

IBubbleChart