[]
Initializes a new instance of the ChartTooltip class.
Gets or sets the tooltip content.
The tooltip content can be specified as a string or as a function that takes a HitTestInfo object as a parameter.
When the tooltip content is a string, it may contain any of the following parameters:
Parameters must be enclosed in single curly brackets. For example:
// 'country' and 'sales' are properties of the data object. chart.tooltip.content = '{country}, sales:{sales}';
The next example shows how to set the tooltip content using a function.
// Set the tooltip content chart.tooltip.content = function (ht) { return ht.name + ":" + ht.value.toFixed(); }
Gets or sets a CSS class name to add to the tooltip.
The default value for this property is an empty string.
Gets or sets the distance between the tooltip and the target element.
The default value for the property is 6 pixels.
Gets or sets the delay, in milliseconds, before hiding the tooltip if the mouse remains over the element.
The default value for the property is zero milliseconds, which causes the tip to remain visible until the mouse moves away from the element.
Gets or sets a value that determines whether tooltips should use a fade-in animation when shown.
The default value for this property is false.
Gets or sets a value that determines whether the tooltip contents should be displayed as plain text or as HTML.
The default value for the property is true.
Gets a value that determines whether the tooltip is currently visible.
Gets or sets the PopupPosition where the tooltip should be displayed with respect to the owner element.
The default value for this property is PopupPosition.Above.
Gets or sets a value that determines whether the tooltip should be calculated based on the mouse position rather than the target element.
The default value for the property is false, which means the tooltip position is calculated based on the target element.
The position property is used to determine the tooltip position in respect to the target element or to the mouse position.
Gets or sets the delay, in milliseconds, before showing the tooltip after the mouse enters the target element.
The default value for the property is 500 milliseconds.
Gets or sets the maximum distance from the element to display the tooltip.
Gets or sets the TooltipTrigger that determines how the tooltip should be triggered.
The default value for this property is TooltipTrigger.Focus.
Removes all tooltips associated with this Tooltip instance.
Gets the tooltip content associated with a given element.
Element, element ID, or control that the tooltip explains.
Tooltip content associated with the given element.
Hides the tooltip if it is currently visible.
Raises the popup event.
TooltipEventArgs that contains the event data.
Assigns tooltip content to a given element on the page.
The same tooltip may be used to display information for any number of elements on the page. To remove the tooltip from an element, call setTooltip and specify null for the content.
To remove the tooltips for all elements, call the dispose method.
Element, single element CSS selector, or control that the tooltip explains.
Tooltip content or ID of the element that contains the tooltip content.
Position where the tooltip should be displayed with respect to the owner element.
Shows the tooltip with the specified content, next to the specified element.
Element, element ID, or control that the tooltip explains.
Tooltip content or ID of the element that contains the tooltip content.
Optional element that defines the bounds of the area that the tooltip targets. If not provided, the bounds of the element are used (as reported by the getBoundingClientRect method).
Occurs before the tooltip content is displayed.
The event handler may customize the tooltip content or suppress the tooltip display by changing the event parameters.
Extends the Tooltip class to provide chart tooltips.