ChartArea: IBubbleChartChartArea;
ChartArea: Prognoz.Platform.Interop.Chart.IBubbleChartChartArea;
The ChartArea property returns parameters of bubble chart plot area.
The plot area includes basic elements of the bubble chart:
Animation area.
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;
ChartArea: IBubbleChartChartArea;
BackgroundInfo: IBubbleChartBackgroundInfo;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//Color scale of bubble chart
ChartArea := Bubble.ChartArea;
ChartArea.BorderColor := GxColor.FromName("Green");
ChartArea.BorderRadius := 50;
ChartArea.BorderThickness := 5;
ChartArea.Padding := 50;
//Background parameters
BackgroundInfo := ChartArea.BackgroundInfo;
BackgroundInfo.Type := BubbleChartBackgroundType.LinearGradient;
BackgroundInfo.LinearGradientAngle := 90;
BackgroundInfo.Color := GxColor.FromName("White");
BackgroundInfo.GradientColor := GxColor.FromName("Blue");
(Eax As IMetabaseObject).Save;
End Sub UserProc;
Executing the example sets up plot area of the bubble chart. Background and borders are set up for the plot area.
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;
ChartArea: IBubbleChartChartArea;
BackgroundInfo: IBubbleChartBackgroundInfo;
GxColorCls: GxColorClass = New GxColorClassClass();
Begin
MB := Params.Metabase;
Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//Color scale of bubble chart
ChartArea := Bubble.ChartArea;
ChartArea.BorderColor := GxColorCls.FromName("Green");
ChartArea.BorderRadius := 50;
ChartArea.BorderThickness := 5;
ChartArea.Padding := 50;
//Background parameters
BackgroundInfo := ChartArea.BackgroundInfo;
BackgroundInfo.Type := BubbleChartBackgroundType.bcbtLinearGradient;
BackgroundInfo.LinearGradientAngle := 90;
BackgroundInfo.Color := GxColorCls.FromName("White");
BackgroundInfo.GradientColor := GxColorCls.FromName("Blue");
(Eax As IMetabaseObject).Save();
End Sub;
Executing the example sets up plot area of the bubble chart. Background and borders are determined for the plot area.
See also: