IBubbleChartAxisLinear.LabelsInfo

Fore Syntax

LabelsInfo: IBubbleChartAxisLabelInfo;

Fore.NET Syntax

LabelsInfo: Prognoz.Platform.Interop.Chart.IBubbleChartAxisLabelInfo;

Description

The LabelsInfo property returns parameters of axis data labels.

Comments

Data labels show intermediate axis values in the range: [IBubbleChartAxis.Min; IBubbleChartAxis.Max]. Intermediate values are calculated automatically.

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;
    AxisX: IBubbleChartAxisLinear;
    LabelInfo: IBubbleChartAxisLabelInfo;
    BackgroundInfo: IBubbleChartBackgroundInfo;
Begin
    MB := MetabaseClass.Active;
    Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //X axis
    AxisX := Bubble.AxisX;
    //X axis parameters
    LabelInfo := AxisX.LabelsInfo;
    LabelInfo.BorderColor := GxColor.FromName("Green");
    LabelInfo.BorderRadius := 1;
    LabelInfo.BorderThickness := 1;
    LabelInfo.Font := New GxFont.Create("Arial"12, GxFontStyle.Bold);
    LabelInfo.FontColor := GxColor.FromName("Red");
    LabelInfo.BorderThickness := 5;
    LabelInfo.Margin := New GxRectF.Create(10101010);
    BackgroundInfo := LabelInfo.BackgroundInfo;
    BackgroundInfo.Type := BubbleChartBackgroundType.Color;
    BackgroundInfo.Color := GxColor.FromName("Yellow");
    (Eax As IMetabaseObject).Save;
End Sub UserProc;

After executing the example settings for labels of the X axis in the bubble chart are changed. Border, font and background parameters are determined for the labels.

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;
    AxisX: IBubbleChartAxisLinear;
    LabelInfo: IBubbleChartAxisLabelInfo;
    BackgroundInfo: IBubbleChartBackgroundInfo;
    GxColorCls: GxColorClass = New GxColorClassClass();
    LabelFont: GxFont = New GxFontClass();
    LabelMargin: GxRectF = New GxRectFClass();
Begin
    MB := Params.Metabase;
    Eax := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //X axis
    AxisX := Bubble.AxisX;
    //X axis parameters
    LabelInfo := AxisX.LabelsInfo;
    LabelInfo.BorderColor := GxColorCls.FromName("Green");
    LabelInfo.BorderRadius := 1;
    LabelInfo.BorderThickness := 1;
    LabelFont.Create("Arial"12, GxFontStyle.gfsBold, GxUnit.guPoint);
    LabelInfo.Font := LabelFont;
    LabelInfo.FontColor := GxColorCls.FromName("Red");
    LabelInfo.BorderThickness := 5;
    LabelMargin.Create(10101010);
    LabelInfo.Margin := LabelMargin;
    BackgroundInfo := LabelInfo.BackgroundInfo;
    BackgroundInfo.Type := BubbleChartBackgroundType.bcbtColor;
    BackgroundInfo.Color := GxColorCls.FromName("Yellow");
    (Eax As IMetabaseObject).Save();
End Sub;

After executing the example settings for labels of the X axis in the bubble chart are changed. Border, font and background parameters are determined for the labels.

See also:

IBubbleChartAxisLinear