SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: Graph Template Language Reference

Previous | Next
BEGINGRAPH Statement

Options

Option Description
BACKGROUNDCOLOR Specifies the color of the graph background.
BORDER Specifies whether a border is drawn around the graph.
BORDERATTRS Specifies the properties of the border line around the graph.
DESIGNHEIGHT Specifies the design height of the graph.
DESIGNWIDTH Specifies the design width of the graph.
PAD Specifies the amount of extra space that is added inside the graph border.

BACKGROUNDCOLOR=style-reference | color
specifies the color of the graph background.

Default: The GraphBackground:Color style reference.

style-reference
A reference of the form style-element:style-attribute . Only the style attribute named COLOR is used.

BORDER=boolean
specifies whether a border is drawn around the graph.

Default: TRUE

Interaction: If this option is set to FALSE, the BORDERATTRS= option is ignored.

BORDERATTRS=style-element | style-element (line-options) | (line-options)
specifies the attributes of the border line around the graph. See "General Syntax for Attribute Options" for the syntax on using a style-element and "Line Options" for available line-options .

Default: The GraphBorderLines style element.

Interaction: BORDER=TRUE must be set for this option to have any effect.

DESIGNHEIGHT=DEFAULTDESIGNHEIGHT | dimension
specifies the design height of the graph.

Default: DEFAULTDESIGNHEIGHT. This value is obtained from the SAS Registry key Products=> Graph=> ODS=>StatGraph=>DefaultDesignHeight when the graph is rendered. The initial value of this registry key is 640px.

Interaction: The design height may be overridden at runtime with the HEIGHT= option of the ODS GRAPHICS statement (external to the template).

Tip: The value of the DefaultDesignHeight registry key can be changed. Doing so would affect the design height of all templates that do not include an explicit dimension for the design height.

DESIGNWIDTH=DEFAULTDESIGNWIDTH | dimension
specifies the design width of the graph.

Default: DEFAULTDESIGNWIDTH. This value is obtained from the SAS Registry key Products=> Graph=> ODS=>StatGraph=>DefaultDesignWidth when the graph is rendered. The initial value of this registry key is 480px.

Interaction: The design width may be overridden at runtime with the WIDTH= option of the ODS GRAPHICS statement (external to the template).

Tip: The value of the DefaultDesignWidth registry key can be changed. Doing so would affect the design width of all templates that do not include an explicit dimension for the design width.

PAD=( pad-options )
specifies the amount of extra space that is added inside the graph border.

Default: The default padding for all sides is 10. Values without units are in pixels (px). A unit must be provided if other than pixels.

Use pad-options to create non-uniform padding. These suboptions are space delimited and must be enclosed in parentheses. Each suboption is specified as a name = value pair. Sides not assigned padding are padded with the default amount.

LEFT=dimension Amount of extra space added to the left side
RIGHT=dimension Amount of extra space added to the right side
TOP=dimension Amount of extra space added to the top
BOTTOM=dimension Amount of extra space added to the bottom
Previous | Next | Top of Page