IBubbleChartGraphArea.GridBackground

Fore Syntax

GridBackground: IBubbleChartBackgroundInfo;

Fore.NET Syntax

GridBackground: Prognoz.Platform.Interop.Chart.IBubbleChartBackgroundInfo;

Description

The GridBackground property returns animation area background settings.

Comments

To determine a value of margins from animation area border to other bubble chart elements, use the IBubbleChartGraphArea.Margin property.

Fore Example

Executing the example requires an express report with the Express_Font identifier. The express report is set up to ensure bubble chart displaying and operation.

Add links to the Metabase, Chart, Express and Drawing system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Eax: IEaxAnalyzer;
    Bubble: IBubbleChart;
    GraphArea: IBubbleChartGraphArea;
Begin
    MB := MetabaseClass.Active;
    Eax := MB.ItemById("Express_Font").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;
    // Animation area background
    GraphArea.GridBackground.Type := BubbleChartBackgroundType.Color;
    GraphArea.GridBackground.Color := GxColor.FromName("Blue");
    (Eax As IMetabaseObject).Save;
End Sub UserProc;

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Chart;
Imports Prognoz.Platform.Interop.Drawing;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Eax: IEaxAnalyzer;
    Bubble: IBubbleChart;
    GraphArea: IBubbleChartGraphArea;
    GxColorCls: GxColorClass = New GxColorClassClass();
Begin
    MB := Params.Metabase;
    Eax := MB.ItemById["Express_Font"].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;
    // Animation area background
    GraphArea.GridBackground.Type := BubbleChartBackgroundType.bcbtColor;
    GraphArea.GridBackground.Color := GxColorCls.FromName("Blue");
    (Eax As IMetabaseObject).Save();
End Sub;

See also:

IBubbleChartGraphArea