ChartArea: IBubbleChartChartArea;
ChartArea: Prognoz.Platform.Interop.Chart.IBubbleChartChartArea;
The ChartArea property returns parameters of the bubble chart plot area.
The plot area includes basic elements of the bubble chart:
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;
ChartArea: IBubbleChartChartArea;
BackgroundInfo: IBubbleChartBackgroundInfo;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//Color scale of the bubble chart
ChartArea := Bubble.ChartArea;
ChartArea.BorderColor := GxColor.FromName("Green");
ChartArea.BorderRadius := 50;
ChartArea.BorderThickness := 5;
ChartArea.Padding := 50;
//Background options
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 this example configures plot area of the bubble chart. Background and borders are defined for the plot 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;
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 the bubble chart
ChartArea := Bubble.ChartArea;
ChartArea.BorderColor := GxColorCls.FromName("Green");
ChartArea.BorderRadius := 50;
ChartArea.BorderThickness := 5;
ChartArea.Padding := 50;
//Background options
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 this example configures plot area of the bubble chart. Background and borders are defined for the plot area.
See also: