Skip to main content

Information tooltip

Description

The information tooltip template is specialised for displaying simple text information. It's injected into the main tooltip template (described in the previous section) when displaying single-string information.

This template is commonly used in scenarios such as:

  • Hovering over points in the Header Widget
  • Hovering over points in the Profile Widget
  • Hovering over behaviours which have hints enabled

Template data

The information tooltip template receives a data object containing the information to be displayed:

VariableDescriptionType
dataThe object containing the string to be displayed in the tooltipObject

When implementing custom information tooltips, you can access this data object to format and display the information as needed.

Implementation example

The following example shows how to override the default information tooltip template:

JavaScript

Customisation options

You can enhance the information tooltip by:

  • Adding HTML formatting to style the tooltip text
  • Including conditional logic to display different content based on the context
  • Adding icons or other visual elements for better user experience