Tooltip
This feature is not supported on the Wolfram Cloud.

Tooltip[expr,label]
displays label as a tooltip while the mouse pointer is in the area where expr is displayed.

Details and OptionsDetails 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:
  • BackgroundNonebackground color for the tooltip
    BaseStyle{}base style specifications for expr
    TooltipStyle{}style specifications for the tooltip
    TooltipDelay0.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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Use a string as a tooltip for an expression:

In[1]:=
Click for copyable input
Out[1]=

Label every curve with a tooltip:

In[1]:=
Click for copyable input
Out[1]=

Specify the tooltip explicitly:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2007
(6.0)
| Updated in 2008
(7.0)
Translate this page: