Legend: IBubbleChartLegend;
Legend: Prognoz.Platform.Interop.Chart.IBubbleChartLegend;
The Legend property returns legend parameters.
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;
Legend: IBubbleChartLegend;
Begin
MB := MetabaseClass.Active;
Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//Bubble chart legend
Legend := Bubble.Legend;
Legend.ColumnCount := 2;
Legend.EnableBorder := True;
Legend.BorderRadius := 10;
Legend.BorderThickness := 5;
Legend.BorderColor := GxColor.FromName("Black");
Legend.HeaderCaption.Text := "Capacity";
Legend.FooterCaption.Text := "t/h";
(Eax As IMetabaseObject).Save;
End Sub UserProc;
On executing this example, bubble chart legend parameters are configured. A border is set for the legend, and text of the header and footer caption is defined.
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;
Legend: IBubbleChartLegend;
GxColorCls: GxColorClass = New GxColorClassClass();
Begin
MB := Params.Metabase;
Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
Bubble := Eax.BubbleChart.Chart;
//Bubble chart legend
Legend := Bubble.Legend;
Legend.ColumnCount := 2;
Legend.EnableBorder := True;
Legend.BorderRadius := 10;
Legend.BorderThickness := 5;
Legend.BorderColor := GxColorCls.FromName("Black");
Legend.HeaderCaption.Text := "Capacity";
Legend.FooterCaption.Text := "t/h";
(Eax As IMetabaseObject).Save();
End Sub;
On executing this example, bubble chart legend parameters are configured. A border is set for the legend, and text of the header and footer caption is defined.
See also: