Data Tips for Web Presentations

What Is a Data Tip?

A data tip is a data value or detailed information that is displayed as pop-up text when a user positions a mouse pointer over an element in a graph. A data tip typically displays the data value that is represented by a bar, a plot point, or some other data element. Data tips are created by default, and custom data tips are supported when using the HTML output destination in combination with certain device drivers.

Adding Custom Data Tips with the HTML= Option

You can add custom data tips to the output of any SAS/GRAPH procedure that supports the HTML= option. The default device for the HTML destination is PNG, so the output of the following code is an HTML file that references a PNG image file.
To add custom data tips:
  1. Add a data tip variable to the data set. In the example that follows, the data tip variable is named rpt.
  2. Assign values to the data tip variable using the following form:
    'title="data tip"'
    Note: Some Web browsers display text that is specified with the ALT= attribute as data tips. In that case, you can use the ALT= attribute instead, but be aware that the data tips might not display in other browsers. Refer to the documentation for your preferred Web browser to determine how the TITLE= and ALT= attribute text is displayed.
  3. Add HTML=data-tip-variable to your procedure's statement. The example below specifies html=rpt.
When mouse pointer is over a data element, the browser displays the data tip. For an example, see Adding Custom Data Tips to a Graph in a Web Presentation.

Data Tips in GIF, JPEG, PNG, JAVAMETA, SVG, SVGT, SVGView, and SVGZ Presentations

For output generated with the GIF, JPEG, PNG, JAVAMETA, and SVG, SVGT, SVGView, and SVGZ device drivers, data tips are not generated by default.
Custom data tips can be implemented for the output of any SAS/GRAPH procedure that supports the HTML= option. For procedures that support the HTML= option, refer to the individual procedure chapter.

Data Tips in ACTIVEX, ACTXIMG, JAVA, and JAVAIMG Presentations

For output generated with the ACTIVEX, ACTXIMG, JAVA, and JAVAIMG device drivers, data tips are created by default. The data tips are displayed when the mouse pointer is positioned over a graph data element. Use the TIPS=NONE parameter to suppress data tips for ActiveX and Java. For example:
ODS HTML parameters=("Tips"="NONE")
Custom data tips can be implemented for the output of any SAS/GRAPH procedure that supports the HTML= option. For procedures that support the HTML= option, refer to the individual procedure chapter. For more information, see Adding Custom Data Tips with the HTML= Option.
Note: Terminals set to use 16-bit colors or 32-bit colors are not supported when specifying data tips for output generated using DEVICE=ACTXIMG