GridBackground: IBubbleChartBackgroundInfo;
GridBackground: Prognoz.Platform.Interop.Chart.IBubbleChartBackgroundInfo;
The GridBackground property returns animation settings area background.
To determine value of external margins from animation area border to other bubble chart elements, use the IBubbleChartGraphArea.Margin property.
Executing this example requires an express report with the Express_Font identifier. The express report is configured 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 the 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;
Requirements and the result of execution of the Fore.NET example are similar to 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 the 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: