IBubbleChart.GraphArea

Fore Syntax

GraphArea: IBubbleChartGraphArea;

Fore.NET Syntax

GraphArea: Prognoz.Platform.Interop.Chart.IBubbleChartGraphArea;

Description

The GraphArea property returns parameters of bubble chart animation area.

Fore Example

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;
    GraphArea: IBubbleChartGraphArea;
    BackgroundInfo: IBubbleChartBackgroundInfo;
Begin
    MB := MetabaseClass.Active;
    Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //Color scale of bubble chart
    GraphArea := Bubble.GraphArea;
    GraphArea.BorderColor := GxColor.FromName("Red");
    GraphArea.BorderRadius := 50;
    GraphArea.BorderThickness := 5;
    GraphArea.Margin := New GxRectF.Create(50505050);
    //Background parameters
    BackgroundInfo := GraphArea.BackgroundInfo;
    BackgroundInfo.Type := BubbleChartBackgroundType.RadialGradient;
    BackgroundInfo.RadialGradientOrigin := New GxPointF.Create(00);
    BackgroundInfo.Color := GxColor.FromName("White");
    BackgroundInfo.GradientColor := GxColor.FromName("Blue");
    (Eax As IMetabaseObject).Save;
End Sub UserProc;

After executing the example parameters of the bubble chart animation area are set up. Background and borders are determined for the area.

Fore.NET Example

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;
    GraphArea: IBubbleChartGraphArea;
    BackgroundInfo: IBubbleChartBackgroundInfo;
    GxColorCls: GxColorClass = New GxColorClassClass();
    GradientOrigin: GxPointF = New GxPointFClass();
Begin
    MB := Params.Metabase;
    Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //Color scale of bubble chart
    GraphArea := Bubble.GraphArea;
    GraphArea.BorderColor := GxColorCls.FromName("Red");
    GraphArea.BorderRadius := 50;
    GraphArea.BorderThickness := 5;
    //Background parameters
    BackgroundInfo := GraphArea.BackgroundInfo;
    BackgroundInfo.Type := BubbleChartBackgroundType.bcbtRadialGradient;
    GradientOrigin.Create(00);
    BackgroundInfo.RadialGradientOrigin := GradientOrigin;
    BackgroundInfo.Color := GxColorCls.FromName("White");
    BackgroundInfo.GradientColor := GxColorCls.FromName("Blue");
    (Eax As IMetabaseObject).Save();
End Sub;

After executing the example parameters of the bubble chart animation area are set up. Background and borders are determined for the area.

See also:

IBubbleChart