Tooltip
Tooltip[expr,label]
displays label as a tooltip while the mouse pointer is in the area where expr is displayed.
Details and Options
- Tooltip can be used with graphics or any other expression.
- Tooltip[expr] is equivalent to Tooltip[expr,expr].
- Tooltip objects can appear within graphics.
- The following options can be given:
-
Background None background color for the tooltip BaseStyle {} base style specifications for expr TooltipStyle {} style specifications for the tooltip TooltipDelay 0. how long to delay before displaying the tooltip - With the default setting TooltipDelay->0, the tooltip is displayed immediately.
- TooltipDelay->Automatic uses the standard delay set on your computer system.
- TooltipDelay->t creates a delay of t seconds before the tooltip is displayed.
- Tooltip can be used to specify tooltips for curves and points in functions like Plot and ListPlot.
- The settings for BaseStyle and TooltipStyle are appended to the default styles typically given by the "Tooltip" and "TooltipLabel" styles in the current stylesheet.
Examples
open allclose allBasic Examples (2)
Scope (5)
Use graphics or any other expression as a tooltip:
Label each expression with a tooltip:
Label each point with a tooltip:
Use tooltips for objects in graphics:
Use Dynamic to recompute the tooltip every time it is looked at:
Options (2)
Applications (4)
Make a table of polynomial factorizations, giving integer factorizations as tooltips:
Use a plot of the formula as the tooltip:
Make a grid of Lissajous curves with their formulas as tooltips [more info]:
Properties & Relations (3)
Tooltip, Mouseover, and PopupWindow can all be used to display additional information:
Tooltips in typesetting are active over the entire frame of the contained contents:
Tooltips in graphics are active only over the graphic ink:
Inner tooltips are prioritized over outer ones:
Overlay can be used to prevent the inner tooltip from firing:
Text
Wolfram Research (2007), Tooltip, Wolfram Language function, https://reference.wolfram.com/language/ref/Tooltip.html (updated 2008).
CMS
Wolfram Language. 2007. "Tooltip." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/Tooltip.html.
APA
Wolfram Language. (2007). Tooltip. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Tooltip.html