Create a Tooltip
NOTE: The tooltip feature is new in QlikMaps 2.2 and is not available in previous versions.
Usage
To add a tooltip to an individual feature (using either a Point or Polygon object), you will need to add 2 things to the Popup expression:
- After creating your popup as usual, add the delimiter "%%%" at the end of your expression
- Add a QlikView dimension or variable. Everything after the delimiter will be displayed as a tooltip on each feature
In this way, you can view simple information about an individual feature while more complex information can be in the feature's popup.
For instance, if your Dimension is a numerical "StoreID", you could use the tooltip feature to display "StoreName" on hovering over.
Template
/* This template defines your popups.
You can also define tooltips that appear when the mouse is hovered over a point.
In order to enable tooltips, add a '%%%' delimiter to the expression. Everything after '%%%' will be displayed in the tooltip.
NOTE: Popups can accept HTML formatting, but tooltips cannot.
NOTE: In order to suppress a popup or tooltip for a point, the expression should return a null value or a '-'
NOTE: In order to include a carriage return in a tooltip, you must use ' '
NOTE: Tooltips are not supported in the Desktop client or on touch\mobile devices.
EXAMPLE 1: Popup only
= '<b>[Dimension]</b> = ' & [Dimension] & '<br>' &
'<b>[x]</b> = ' & num(sum([x]), '$#,###.')
EXAMPLE 2: Popup with a tooltip
= '<b>[Dimension]</b> = ' & [Dimension] & '<br>' &
'<b>[x]</b> = ' & num(sum([x]), '$#,###.') &
'%%%' &
'[Dimension] = ' & [Dimension] & ' ' &
'[x] = ' & num(sum([x]), '$#,###.')
EXAMPLE 3: Tooltip only
= '%%%' &
'[Dimension] = ' & [Dimension] & ' ' &
'[x] = ' & num(sum([x]), '$#,###.')
EXAMPLE 4: Suppress popup and tooltip
= ''
*/