IBubbleChartSerie.Label

Fore Syntax

Label: IBubbleChartLabel;

Fore.NET Syntax

Label: Prognoz.Platform.Interop.Chart.IBubbleChartLabel;

Description

The Label property returns parameters of the text data label shown next to the bubble.

Comments

A text data label may contain any information including various axes values at the current time point.

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;
    Serie: IBubbleChartSerie;
    SerieLabel: IBubbleChartLabel;
Begin
    MB := MetabaseClass.Active;
    Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //Series
    Serie := Bubble.Series.Item(0);
    //Text data label
    SerieLabel := Serie.Label;
    SerieLabel.BorderColor := GxColor.FromName("Red");
    SerieLabel.BorderRadius := 5;
    SerieLabel.BorderThickness := 2;
    SerieLabel.MaskText := "Acceleration = {%XValue}." + #13 + #10 + "Capacity = {%YValue}";
    SerieLabel.Visible := True;
    (Eax As IMetabaseObject).Save;
End Sub UserProc;

On executing the example the text label shown next to the marker of the first series is set up. Border parameters and the mask, based on which the displayed text is formed, are set for the data label.

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;
    Serie: IBubbleChartSerie;
    SerieLabel: IBubbleChartLabel;
    GxColorCls: IGxColorClass = New GxColorClassClass();
Begin
    MB := Params.Metabase;
    Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //Series
    Serie := Bubble.Series.Item[0];
    //Text data label
    SerieLabel := Serie.Label;
    SerieLabel.BorderColor := GxColorCls.FromName("Red");
    SerieLabel.BorderRadius := 5;
    SerieLabel.BorderThickness := 2;
    SerieLabel.MaskText := "Acceleration = {%XValue}.\u000D\u000ACapacity = {%YValue}";
    SerieLabel.Visible := True;
    (Eax As IMetabaseObject).Save();
End Sub;

On executing the example the text label shown next to the marker of the first series is set up. Border parameters and the mask, based on which the displayed text is formed, are set for the data label.

See also:

IBubbleChartSerie