SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: ODS Graphics Editor User's Guide

Working with Data Labels

Some plots might display data labels for each observation in the plot. If there are a lot of observations, then the plot can become cluttered. You can limit the display to those data labels that are important to the analysis.
To display or hide data labels:
  1. Click the data label icon data label icon in the Graph toolbar.
  2. Select the observations for data label management as follows:
    • Click an observation to select it. If you press CTRL and click an observation, you can toggle the observation on and off. Pressing CTRL also enables you to select multiple observations.
    • Click on the data label of an observation to select it.
    • Drag a rectangle in the plot area. All the observations in this area are selected. You can add more items to the selection list by pressing CTRL and dragging a rectangle around the additional observations.
  3. Right-click and select one of the following label options:
    • Show Only Selected shows labels only for those data points that are currently selected. This option first turns off all the data labels and then displays the labels only for the selected data points.
    • Show Selected shows labels for the data points that are selected. This option leaves unchanged the data labels for all other data points that are not currently selected. For example, if you previously selected data points and set them to show, with this option they remain selected.
    • Hide Selected hides labels for those data points that are selected.
    • Show All shows labels for all the data points.
    • Hide All hides labels for all the data points.
All items in the selection list are displayed with the selection color. If the selected item is in a scatter overlay and a marker is selected, then the marker displays with the selection color. For a line overlay, if the marker is not turned on, then a temporary circle is created and displayed with the selection color.
The layout of a plot refreshes when labels are turned off or on. If some labels are located away from their data points, the labels move closer to the data points if space is made available by turning off other labels.