ChartTooltipBehavior
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:
public sealed class ChartTooltipBehavior : ChartBehavior
Inheritance: objectChartBehaviorChartTooltipBehavior
Constructors
public ChartTooltipBehavior()
Fields
HideDelayProperty
BindableProperty
Identifies the HideDelay bindable property.
public static readonly BindableProperty HideDelayProperty
HoverDelayProperty
BindableProperty
Identifies the HoverDelay bindable property.
public static readonly BindableProperty HoverDelayProperty
PlacementModeProperty
BindableProperty
Identifies the PlacementMode bindable property.
public static readonly BindableProperty PlacementModeProperty
TooltipContentTemplateProperty
BindableProperty
Identifies the TooltipContentTemplate bindable property.
public static readonly BindableProperty TooltipContentTemplateProperty
TooltipLabelFormatProperty
BindableProperty
Identifies the TooltipLabelFormat bindable property.
public static readonly BindableProperty TooltipLabelFormatProperty
TooltipStyleProperty
BindableProperty
Identifies the TooltipStyle bindable property.
public static readonly BindableProperty TooltipStyleProperty
TriggerModeProperty
BindableProperty
Identifies the TriggerMode bindable property.
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.
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.
public int HoverDelay { get; set; }
TooltipContentTemplate
DataTemplate
Gets or sets the template or template selector used to create tooltip content.
public DataTemplate TooltipContentTemplate { get; set; }
Gets or sets the composite format string used to format the point value.
public string TooltipLabelFormat { get; set; }
TooltipStyle
Style
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.
public Style TooltipStyle { get; set; }
Events
Occurs once for each newly hit point, after it is resolved and before its context is bound to tooltip content.
public event EventHandler<ChartTooltipOpeningEventArgs> TooltipOpening