GraphArea: IBubbleChartGraphArea;
GraphArea: Prognoz.Platform.Interop.Chart.IBubbleChartGraphArea;
The GraphArea property returns parameters of the matrix animation area.
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;
GraphArea: IBubbleChartGraphArea;
BackgroundInfo: IBubbleChartBackgroundInfo;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").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;
GraphArea.Margin := New GxRectF.Create(50, 50, 50, 50);
//Background options
BackgroundInfo := GraphArea.BackgroundInfo;
BackgroundInfo.Type := BubbleChartBackgroundType.RadialGradient;
BackgroundInfo.RadialGradientOrigin := New GxPointF.Create(0, 0);
BackgroundInfo.Color := GxColor.FromName("White");
BackgroundInfo.GradientColor := GxColor.FromName("Blue");
(Eax As IMetabaseObject).Save;
End Sub UserProc;
Parameters of the bubble chart animation area are configured after executing this example. Background and borders are defined for the area.
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;
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 the bubble chart
GraphArea := Bubble.GraphArea;
GraphArea.BorderColor := GxColorCls.FromName("Red");
GraphArea.BorderRadius := 50;
GraphArea.BorderThickness := 5;
//Background options
BackgroundInfo := GraphArea.BackgroundInfo;
BackgroundInfo.Type := BubbleChartBackgroundType.bcbtRadialGradient;
GradientOrigin.Create(0, 0);
BackgroundInfo.RadialGradientOrigin := GradientOrigin;
BackgroundInfo.Color := GxColorCls.FromName("White");
BackgroundInfo.GradientColor := GxColorCls.FromName("Blue");
(Eax As IMetabaseObject).Save();
End Sub;
Parameters of the bubble chart animation area are configured after executing this example. Background and borders are defined for the area.
See also: