TooltipInfo: IBubbleChartTooltip;
TooltipInfo: Prognoz.Platform.Interop.Chart.IBubbleChartTooltip;
The TooltipInfo property returns parameters of a tooltip displayed next to the bubble.
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;
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;
After executing the example a tooltip is set up for the first series. Text parameters will be set for the tooltip, and the mask, according to which the text will be formed. The tooltip is displayed on clicking a series bubble.
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;
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;
After executing the example a tooltip is set up for the first series. Text parameters will be determined for the tooltip, and the mask, according to which the text will be formed. The tooltip is displayed on clicking a series bubble.
See also: