New to Telerik UI for .NET MAUI? Start a free 30-day trial

Shows a styleable tooltip for the chart point under the pointer or tapped by the user.

By default, the tooltip opens on hover on desktop and on tap on mobile. Handle TooltipOpening to add application data through AdditionalData. This behavior can be added to all chart types.

Definition

Namespace:Telerik.Maui.Controls.Charts

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public sealed class ChartTooltipBehavior : ChartBehavior

Inheritance: objectChartBehaviorChartTooltipBehavior

Constructors

C#
public ChartTooltipBehavior()

Fields

HideDelayProperty

BindableProperty

Identifies the HideDelay bindable property.

C#
public static readonly BindableProperty HideDelayProperty

HoverDelayProperty

BindableProperty

Identifies the HoverDelay bindable property.

C#
public static readonly BindableProperty HoverDelayProperty

PlacementModeProperty

BindableProperty

Identifies the PlacementMode bindable property.

C#
public static readonly BindableProperty PlacementModeProperty

Identifies the TooltipContentTemplate bindable property.

C#
public static readonly BindableProperty TooltipContentTemplateProperty

Identifies the TooltipLabelFormat bindable property.

C#
public static readonly BindableProperty TooltipLabelFormatProperty

TooltipStyleProperty

BindableProperty

Identifies the TooltipStyle bindable property.

C#
public static readonly BindableProperty TooltipStyleProperty

TriggerModeProperty

BindableProperty

Identifies the TriggerMode bindable property.

C#
public static readonly BindableProperty TriggerModeProperty

Properties

Gets or sets the delay, in milliseconds, before a tooltip opened by a tap or a hold is hidden. The default is 2000. Set to zero or a negative value to keep the tooltip visible until another interaction hides it. For Hold the delay starts when the press is released. This property has no effect for Hover, where the tooltip is hidden as soon as the pointer leaves the data point or the plot area.

C#
public int HideDelay { get; set; }

Gets or sets the delay, in milliseconds, before a tooltip appears while the pointer hovers over a data point. The default is zero. The delay applies only to Hover and only to an initial show. While a tooltip is visible, or for a short moment after the pointer left a data point, moving to another data point shows its tooltip immediately. This property has no effect for Tap and Hold.

C#
public int HoverDelay { get; set; }

Gets or sets where the tooltip is positioned. The default Pointer places it at the pointer or tap position. DataPoint places it at a fixed position relative to the data point.

C#
public ChartTooltipPlacementMode PlacementMode { get; set; }

Gets or sets the template or template selector used to create tooltip content.

C#
public DataTemplate TooltipContentTemplate { get; set; }

Gets or sets the composite format string used to format the point value.

C#
public string TooltipLabelFormat { get; set; }

Gets or sets the style applied to the tooltip. The target type of the style is ChartTooltip. Use a for ChartTooltip.ControlTemplate to replace the tooltip's visual structure.

C#
public Style TooltipStyle { get; set; }

Gets or sets how the tooltip is opened. The default is Hover on desktop and Tap on mobile.

C#
public ChartTooltipTriggerMode TriggerMode { get; set; }

Events

Occurs once for each newly hit point, after it is resolved and before its context is bound to tooltip content.

C#
public event EventHandler<ChartTooltipOpeningEventArgs> TooltipOpening