Style Elements Affecting Template-Based Graphics

The following style elements affect template-based graphics and can be specified by Graph Template Language appearance options or used in styles. Template-based graphics include all SAS/GRAPH output where a compiled ODS template of type STATGRAPH is used to produce graphical output. Supplied templates are stored in Sashelp.Tmplmst. Device drivers and some global statements such as SYMBOL, PATTERN, AXIS, and LEGEND have no affect on this form of graphics. Common SAS/GRAPH procedures that produce template-based graphics are SGPLOT, SGPANEL, and SGRENDER in addition to many SAS/STAT, SAS/ETS, and SAS/QC procedures. ODS graphics always produce output as image files and use the ODS GRAPHICS statement to control the graphical environment.
Certain style elements were created to be used with specific plots or graphs. For example, the style element GraphFit2 is best used to modify secondary fit lines. The style element GraphConfidence2 was created to modify secondary confidence bands. The table below lists each style element, the portion of the graph that it affects or was created to use with, and the default attribute values. Attribute values can be changed with PROC TEMPLATE, as stated above.
For complete documentation on the style attributes that can be specified in each style element, see Style Attributes Overview.
Graph Style Elements: General Graph Appearance
Style Element
Portion of Graph Affected
Recognized Attributes
Graph
Graph size and outer border appearance
OutputWidth
OutputHeight
BorderColor
BorderWidth
CellPadding
CellSpacing
GraphAnnoLine
Annotation lines
ContrastColor
LineStyle
LineThickness
GraphAnnoShape
Annotation closed shapes such as circles, and squares
Color
ContrastColor
LineThickness
LineStyle
Transparency
GraphAnnoText
Annotation text
Font
or font-attributes1
Color
MarkerSize
MarkerSymbol
GraphAxisLines
X, Y and Z axis lines
ContrastColor
LineStyle
LineThickness
TickDisplay
GraphBackground
Background of the graph
Color
Transparency
GraphBorderLines
Border around graph wall, legend border, borders to complete axis frame
ContrastColor
LineThickness
LineStyle
GraphDataText
Text font and color for point and line labels
Font
or font-attributes1
Color
GraphFootnoteText
Text font and color for footnote(s)
Font
or font-attributes1
Color
GraphLabelText
Text font and color for axis labels and legend titles
Font
or font-attributes1
Color
GraphOutlines
Outline properties for fill areas such as bars, pie slices, box plots, ellipses, and histograms
Color
ContrastColor
LineStyle
LineThickness
GraphReference
Horizontal and vertical reference lines and drop lines
ContrastColor
LineStyle
LineThickness
GraphTitleText
Text font and color for title(s)
Font
or font-attributes1
Color
GraphUnicodeText
Text font for unicode values
Font
orfont-attributes1
Color
GraphValueText
Text font and color for axis tick values and legend values
Font
or font-attributes1
Color
1Font-attributes can be one of the following: FONTFAMILY=, FONTSIZE=, FONTSTYLE=, FONTWEIGHT=.
Style Elements Affecting Graphical Data Representation
Style Element
Portion of Graph Affected
Recognized Attributes
GraphBoxMean
Marker for mean
ContrastColor
MarkerSize
MarkerSymbol
GraphBoxMedian
Line for median
ContrastColor
LineStyle
LineThickness
GraphBoxWhisker
Box whiskers and serifs
ConstrastColor
LineStyle
LineThickness
GraphConfidence
Primary confidence lines and bands, colors for bands and lines
ContrastColor
Color
MarkerSize
MarkerSymbol
LineStyle
LineThickness
GraphConfidence2
Secondary confidence lines and bands, color for bands, and contrast color for lines
ContrastColor
Color
MarkerSize
MarkerSymbol
LineStyle
LineThickness
GraphConnectLine
Line for connecting boxes or bars
ContrastColor
LineStyle
LineThickness
GraphCutLine
Cutline attributes for a dendogram
Color
LineStyle
GraphDataDefault
Primitives related to non-grouped data items, colors for filled areas, markers, and lines
Color
ContrastColor
MarkerSymbol
MarkerSize
LineStyle
LineThickness
StartColor
NeutralColor
EndColor
GraphError
Error line or error bar fill, ContrastColor for lines, Color for bar fill
ContrastColor
Color
LineStyle
Transparency
GraphFit
Primary fit lines such as a normal density curve
ContrastColor
Color
MarkerSize
MarkerSymbol
LineStyle
LineThickness
GraphFit2
Secondary fit lines such as a kernel density curve
ContrastColor
Color
MarkerSize
MarkerSymbol
LineStyle
LineThickness
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
GraphMissing
Properties for graph items representing missing values
ContrastColor
Color
MarkerSymbol
MarkerSize
LineStyle
LineThickness
Transparency
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
GraphOutlier
Outlier data for the graph
ContrastColor
Color
MarkerSize
MarkerSymbol
LineStyle
LineThickness
GraphPrediction
Prediction lines
ContrastColor
Color
LineStyle
LineThickness
MarkerSize
MarkerSymbol
GraphPredictionLimits
Fills for prediction limits
ContrastColor
Color
MarkerSize
MarkerSymbol
GraphUnderflow
Underflow data for the graph. Color applies to filled areas. ContrastColor applies to markers and lines.
Color
ContrastColor
LineStyle
LineThickness
MarkerSize
MarkerSymbol
TextColor
GraphSelection
For interactive graphs, visual properties of selected item. Color for selected fill area, ContrastColor for selected marker or line.
ContrastColor
Color
MarkerSymbol
MarkerSize
LineStyle
LineThickness
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
Graphical Style Elements: Data Related (Grouped)
Style Element
Portion of Graph Affected
Recognized Attributes
GraphData1
Primitives related to 1st grouped data items. Color applies to filled areas. ContrastColor applies to markers and lines.
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData2
Primitives related to 2nd grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData3
Primitives related to 3rd grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData4
Primitives related to 4th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData5
Primitives related to 5th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData6
Primitives related to 6th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData7
Primitives related to 7th grouped data items
Color
ContrastColor
MarkerSymbol
LineStyle
GraphData8
Primitives related to 8th grouped data items
Color
ContrastColor
LineStyle
GraphData9
Primitives related to 9th grouped data items
Color
ContrastColor
LineStyle
GraphData10
Primitives related to 10th grouped data items
Color
ContrastColor
LineStyle
GraphData11
Primitives related to 11th grouped data items
Color
ContrastColor
LineStyle
GraphData12
Primitives related to 12th grouped data items
Color
ContrastColor
Display Style Elements
Style Element
Portion of Graph Affected
Recognized Attributes
Possible Values
GraphAltBlock
Alternate fill color for block plots
Color
GraphColors("gablock")
GraphBand
Display options for confidence bands
DisplayOpts
“Fill ”
GraphBar
Display options for bar charts
DisplayOpts
“Fill outline”
GraphBox
Display options for box plots
DisplayOpts
CapStyle
Connect
“Fill caps mean
Median outliers ”
"Serif"
"Mean"
GraphBlock
Fill color for block plots
Color
GraphColors("gblock")
GraphEllipse
Display options for confidence ellipses
DisplayOpts
“Outline”
GraphHistogram
Display options for histograms
DisplayOpts
“Fill outline”