IBubbleChartSerie.TooltipInfo

Fore Syntax

TooltipInfo: IBubbleChartTooltip;

Fore.NET Syntax

TooltipInfo: Prognoz.Platform.Interop.Chart.IBubbleChartTooltip;

Description

The TooltipInfo property returns parameters of the tooltip shown next to the bubble.

Fore Example

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;
    Serie: IBubbleChartSerie;
    Tooltipe: IBubbleChartTooltip;
Begin
    MB := MetabaseClass.Active;
    Eax := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Bubble := Eax.BubbleChart.Chart;
    //Series
    Serie := Bubble.Series.Item(0);
    //Tooltip
    Tooltipe := Serie.TooltipInfo;
    Tooltipe.Font := New GxFont.Create("Arial"14);
    Tooltipe.FontColor := GxColor.FromName("Red");
    Tooltipe.HoverMode := BubbleChartHoverMode.Click;
    Tooltipe.MaskText := "Acceleration = {%XValue}." + #13 + #10 + "Capacity = {%YValue}";
    Tooltipe.Visible := True;
    (Eax As IMetabaseObject).Save;
End Sub UserProc;

A tooltip for the first series is configured after executing this example. Text parameters will be set for the tooltip, and the mask according to which the text will be shown. The tooltip shows on clicking series bubble.

Fore.NET Example

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;
    Serie: IBubbleChartSerie;
    Tooltipe: IBubbleChartTooltip;
    TooltipeFont: GxFont = New GxFontClass();
    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];
    //Tooltip
    Tooltipe := Serie.TooltipInfo;
    TooltipeFont.Create("Arial"14, GxFontStyle.gfsRegular, GxUnit.guPoint);
    Tooltipe.Font := TooltipeFont;
    Tooltipe.FontColor := GxColorCls.FromName("Red");
    Tooltipe.HoverMode := BubbleChartHoverMode.bchmClick;
    Tooltipe.MaskText := "Acceleration = {%XValue}.\u000D\u000ACapacity = {%YValue}";
    Tooltipe.Visible := True;
    (Eax As IMetabaseObject).Save();
End Sub;

A tooltip for the first series is configured after executing this example. Text parameters will be defined for the tooltip, and the mask according to which the text will be shown. The tooltip shows on clicking series bubble.

See also:

IBubbleChartSerie