IBubbleChart.Legend

Fore Syntax

Legend: IBubbleChartLegend;

Fore.NET Syntax

Legend: Prognoz.Platform.Interop.Chart.IBubbleChartLegend;

Description

The Legend property returns legend parameters.

Fore Example

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;
    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;

After executing the example bubble chart legend parameters are set up. A border is set up for the legend, and text of the header and footer caption is determined.

Fore.NET Example

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;
    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;

After executing the example bubble chart legend parameters are set up. A border is set up for the legend, and text of the header and footer caption is determined.

See also:

IBubbleChart