Chapter Contents


The GANNO Procedure

PROC GANNO Statement

Identifies the Annotate data set and draws the graphics output defined by that data set. Optionally, it scales the output to accommodate data-dependent coordinate values and specifies an output catalog.


PROC GANNO ANNOTATE=Annotate-data-set
<NAME='entry-name' | variable-name>;

Required Arguments

specifies a data set that includes Annotate variables that identify graphics commands and parameters.
See also: The Annotate Data Set


Options in the GANNO statement affect all graphs produced by that statement. You can specify as many options as you want and list them in any order.

indicates that absolute or relative data-dependent coordinates occur in the Annotate data set and scales the coordinates to fit the graphics output area. Use DATASYS only with Annotate data sets in which the coordinate system variables XSYS, YSYS, and HSYS specify the values 1, 2, 7, or 8.

Use the DATASYS option when graphics elements that were created with data-dependent variables do not fit in the graphics output area. This happens when the coordinate values generated by the data exceed a range of 0 to 100.

If you omit DATASYS, GANNO attempts to draw each graphics element according to the data values assigned to it without scaling the values. If the range of data values is too large, some graphics elements do not display.
See also: Using the DATASYS Option to Scale Graphs
Featured in: Scaling Data-Dependent Output

specifies the description of the catalog entry for the chart. The maximum length for entry-description is 40 characters. The description does not appear on the chart. By default, the GANNO procedure assigns the description OUTPUT FROM PROC GANNO.
Featured in: Storing Annotate Graphics

specifies the SAS catalog in which to save the graphics output produced by the GANNO procedure. If you omit the libref, SAS/GRAPH looks for the catalog in the temporary library called WORK and creates the catalog if it does not exist.
See also: Storing Graphics Output in SAS Catalogs
Featured in: Storing Annotate Graphics

creates a SAS data set that contains information about the graph and about areas in the graph. This information includes the shape and coordinates of the areas, and is used to build an HTML file that links the graph areas to other files or images. This linking provides drill-down functionality on the graph. The Imagemap data set also contains the information that is stored in the HTML variable in the Annotate data set. Therefore, in order to use IMAGEMAP= to create an HTML file, you must also use the HTML variable in the Annotate data set.
See also: Customizing Web Pages for Drill-down Graphs and HTML Variable
Featured in: Using Annotate Graphics in a Drill-down Graph

NAME='entry-name' | variable-name
specifies one of the following:

If the value you assign to the NAME= option is enclosed in quotation marks, the procedure interprets it as a catalog entry name; if the value is not enclosed in quotes, the procedure interprets it as a variable name.

The value entry-name specifies the name of the catalog entry for the graph. The maximum length for entry-name is 8 characters. The default name is GANNO. If the specified name duplicates the name of an existing entry, SAS/GRAPH software adds a number to the duplicate name to create a unique entry, for example, GANNO1.

If you specify variable-name, the GANNO procedure produces a separate graph for each different value of that variable. In addition, when you specify NAME=variable-name, each value of the variable is used as the name of the catalog entry for that graph. A value that is longer than 8 characters is truncated. For example, if the value is Frankfurt, it is truncated to Frankfur. A second catalog entry would be Frankfu1. Consequently, you cannot use NAME='entry-name' at the same time.

Note:   Specifying NAME=variable-name in the PROC GANNO statement produces results similar to those produced by the BY statement in a procedure that supports BY-group processing. See BY Statement for details.  [cautionend]
Featured in: Storing Annotate GraphicsUsing the NAME= Option to Produce Multiple Graphs

Using the DATASYS Option to Scale Graphs

If your Annotate data set specifies a coordinate system that is based on data values (that is, XSYS, YSYS, and HSYS are assigned the values 1, 2, 7, or 8), the data values determine the size and location of the graphics elements on the output.

If the procedure that specifies the annotation generates axes (such as GPLOT or GCHART), by default the axes are scaled to accommodate the full range of data values and to fit in the procedure output area. Because all values are included in the axes, the graph displays all the Annotate output that is dependent on data values.

However, if the annotation displays with the GSLIDE or GANNO procedure, which do not generate axes, the data values may generate coordinate values that exceed the limits of the graphics output area.

In this case, you can use the DATASYS option to tell the procedure that the Annotate data set contains data-dependent coordinates and to scale the output accordingly. For an illustration of this process, see Scaling Data-Dependent Output.

When you use the DATASYS option, the GANNO procedure reads the entire input data set before drawing the graph and creates an output environment that is data dependent; that is, the environment is based on the minimum and maximum values that are contained in the data set. It then scales the data to fit this environment so that all graphics elements can be drawn.

Although the DATASYS option enables you to generate graphs using one of the data-dependent coordinate systems, it requires that the procedure scan the entire data set to determine the minimum and maximum data values. You can save this extra pass of the data set by using data-dependent values only in procedures that generate axes. Annotate coordinate system 5 (percent of the procedure output area) is recommended for use with the GANNO procedure. This coordinate system works equally well with the GSLIDE procedure if you decide to display the annotation with titles and footnotes.

Chapter Contents



Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.