Graphical Style Element Reference for Device-Based Graphics

The GraphColors Style Element

The GraphColors style element specifies the colors that are used for different categories of graphical elements.
GraphColors Attributes for Device-Based Output lists the style attributes that are defined in the GraphColors style element and the graphical elements that they affect by default.
GraphColors Attributes for Device-Based Output
GraphColors Attribute1
Portion of Graph Affected
gaxis
Axis lines and tick marks
gborderlines
Border around the graph wall, legend border, and borders to complete axis frame
gconnectLine
Line for connecting boxes
gfloor
Graph floor
ggrid
Grid lines
glabel
Axis labels and legend titles
glegend
Background of the legend
goutline
Outlines for data primitives such as bars, pie slices, and boxes
gshadow
Drop shadows used with text
gtext2
Graph titles, tick mark values, and legend value descriptions
gwalls
Frame area in two-dimensional graphs and vertical walls in three-dimensional graphs
gdata1–gdata12
gcdata1–gcdata12
Data items; gdata1–gdata12 apply to filled areas; gcdata1–gcdata12 apply to markers and lines
gramp2cstart
gramp2cend
Gradient contours, surfaces, continuous choropleth maps, and continuous block maps when areas are not used
gconramp2cstart
gconramp2cend
Continuous block maps when areas are used
1Elements in the GraphColors style element that are not included in this table are used with template-based (ODS Graphics) output only.
2The gtext attribute does not affect text that is not rendered as part of the graph. See also Controlling Titles and Footnotes.

The GraphFonts Style Element

The GraphFonts style element specifies the fonts that are used for different categories of graphical elements. GraphFonts Attributes for Device-Based Output lists the style attributes that are defined in the GraphFonts style element and the graphical elements that they affect by default.
GraphFonts Attributes for Device-Based Output
GraphFonts Attributes1
Portion of Graph Affected
GraphDataFont
Contour labels
GraphValueFont
Axis tick mark labels, legend value description labels, data values in statistics tables, pie labels, regression equations, data point labels, bar labels
GraphLabelFont
Axis labels, legend labels, column headings in statistics tables
GraphFootnoteFont
Footnotes
GraphTitleFont
Titles
1The GraphUnicode and GraphAnnoFont attributes are used with ODS graphics only.

Font Specifications in the GraphFonts Style Element

Font definitions in the GraphFonts style element can refer to registry entries, they can specify a specific font, or they can specify a font family. For example:
 'GraphLabelFont' = ("<MTsans-serif>, Arial, sans-serif",10pt,bold)
<MTsans-serif>
specifies the font family identified by the MTsans-serif subkey in the SAS registry. The less than and greater than signs tell SAS that this is the name of a subkey in the SAS registry. Because it is the first font listed, SAS uses this font if possible. To view the font settings in the SAS registry, select ODSthen selectFONTS in the SAS registry.For more information, see Changing SAS Registry Settings for ODS in SAS Output Delivery System: User's Guide in SAS Output Delivery System: User's Guide.
Arial
specifies the Arial font family. If SAS cannot find the first font listed, it tries to find the second font listed.
sans-serif
specifies the sans-serif font family. If SAS cannot find the specific fonts listed, then it looks for a font in the sans-serif font family.
10pt,bold
specifies the weight and style that should be used.
In this example, if the SAS registry entry for the MTsans-serif subkey specifies Albany AMT, then SAS/GRAPH first tries to use the Albany AMT 10 point bold font. If it cannot find this font, then it tries to use Arial 10 point bold, and so on.
Note: SAS might not be able to find a specific font unless it is registered with the FONTREG procedure. The fonts provided by SAS are already registered. If you want to add additional fonts, see SAS Language Reference: Concepts for information about registering TrueType fonts. See Base SAS Procedures Guide for information about the FONTREG procedure.

Style Elements for Use with SAS/GRAPH Output

The style elements listed in the following tables affect SAS/GRAPH output and can be used in styles. These tables list each style element, the portion of the graph that it affects or was created to use with, and its attribute values. Attribute values can be changed with PROC TEMPLATE, as described in Using the TEMPLATE Procedure and Example: Modifying a Style Element.For complete documentation about the style attributes that can be specified in each style element, see Style Attributes Overview in SAS Output Delivery System: User's Guide.
Device-Based Graph Style Elements: General Graph Appearance
Style Element
Portion of Graph Affected
Recognized Attributes
DropShadowStyle
Used with text types
Color
Graph
Graph size and outer border appearance
OutputWidth
OutputHeight
BorderColor
BorderWidth
CellPadding
CellSpacing
GraphAxisLines
X, Y, and Z axis lines
Color
LineStyle
LineThickness
GraphBackground
Background of the graph
Transparency
BackgroundColor
Gradient_Direction
StartColor
EndColor
BackgroundImage
Image
VerticalAlign
TextAlign
GraphBorderLines
Border around graph wall, legend border, borders to complete axis frame
Color
LineThickness
LineStyle
GraphCharts
All charts within the graph
Transparency
BackgroundColor
Gradient_Direction
StartColor
EndColor
BackgroundImage
Image
VerticalAlign
TextAlign
GraphDataText
Text font and color for point and line labels
Font or font-attributes1
Color
GraphFloor
3D floor
BackgroundColor
Transparency
Gradient_Direction
StartColor
EndColor
BackgroundImage
Image
VerticalAlign
TextAlign
GraphFootnoteText
Text font and color for footnotes
Font or font-attributes1
Color
GraphGridLines
Horizontal and vertical grid lines drawn at major tick marks
Color
LineStyle
LineThickness
Transparency
displayopts
GraphGridLines
Horizontal and vertical grid lines drawn at major tick marks
Color
LineStyle
LineThickness
Transparency
displayopts
GraphLegendBackground
Background color of the legend
Color
Transparency
GraphOutlines
Outline properties for fill areas such as bars, pie slices, and box plots.
Color
LineStyle
LineThickness
GraphTitleText
Text font and color for titles
Font or font-attributes1
Color
GraphValueText
Text font and color for axis tick values and legend values
Font or font-attributes1
Color
GraphWalls
Vertical walls bounded by axes
Transparency
BackgroundColor
Gradient_Direction
StartColor
EndColor
BackgroundImage
Image
1Font-attributes can be one of the following: FONTFAMILY=, FONTSIZE=, FONTSTYLE=, FONTWEIGHT=.
Style Elements Affecting Device-Based Non-Grouped Graphical Data Representation
Style Element
Portion of Graph Affected
Default Attributes
GraphCutLine
Cutline attributes for a dendogram
Color
LineStyle
GraphFinal
Final data for the waterfall chart. Color applies to filled areas.
Color
ContrastColor
LineStyle
LineThickness
MarkerSize
MarkerSymbol
TextColor
GraphInitial
Initial data for the waterfall chart. Color applies to filled areas.
Color
ContrastColor
LineStyle
LineThickness
MarkerSize
MarkerSymbol
TextColor
GraphOther
Other data for the graph. Color applies to filled areas.
Color
ContrastColor
LineStyle
LineThickness
MarkerSize
MarkerSymbol
TextColor
GraphOverflow
Overflow data for the graph. Color applies to filled areas. ContrastColor applies to markers and lines.
Color
ContrastColor
LineStyle
LineThickness
MarkerSize
MarkerSymbol
TextColor
GraphUnderflow
Underflow data for the graph. Color applies to filled areas. ContrastColor applies to markers and lines.
Color
ContrastColor
LineStyle
LineThickness
MarkerSize
MarkerSymbol
TextColor
ThreeColorAltRamp
Line contours, markers, and data labels with segmented range color response
StartColor
NeutralColor
EndColor
ThreeColorRamp
Gradient contours, surfaces, markers, and data labels with continuous color response
StartColor
NeutralColor
EndColor
TwoColorAltRamp
Line contours, markers, and data labels with segmented range color response
StartColor
EndColor
TwoColorRamp
Gradient contours, surfaces, markers, and data labels with continuous color response
StartColor
EndColor
Style Elements Affecting Device-Based Grouped Graphical Data Representation
Style Element
Portion of Graph Affected
Default Attributes
GraphData1
Primitives related to 1st grouped data items. Color applies to filled areas. ContrastColor applies to markers and lines.
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData2
Primitives related to 2nd grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData3
Primitives related to 3rd grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData4
Primitives related to 4th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData5
Primitives related to 5th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData6
Primitives related to 6th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData7
Primitives related to 7th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData8
Primitives related to 8th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData9
Primitives related to 9th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData10
Primitives related to 10th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData11
Primitives related to 11th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image
GraphData12
Primitives related to 12th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
MarkerSize
LineThickness
Gradient_Direction
StartColor
EndColor
BackGroundImage
Image