ODS Style Elements |
Device-based graphics are all SAS/GRAPH output where there is a user-specified or default device (DEVICE= option) that controls certain aspects of the graphical output. Supplied device drivers are stored in the SASHELP.DEVICES catalog. Examples of devices drivers are SASPRTC, GIF, WIN, ACTIVEX, PDF, and SVG. Common SAS/GRAPH procedures that produce device-based graphics are GPLOT, GCHART, and GMAP. Most device-based graphics produce produce a GRSEG catalog entry as output and use the GOPTIONS statement to control the graphical environment.
For complete documentation on the style attributes that can be specified in each style element, see Style Attributes Overview.
Note: These style elements affect device-based graphics only when the GSTYLE system option is in effect (this is is the default for SAS 9.2). If the NOGSTYLE system option is specified, graphs do not use any style information. For more information about the GSTYLE system option, see SAS Language Reference: Dictionary.
Style Element | Portion of Graph Affected | Recognized Attributes | Attribute Values in DEFAULT Style |
---|---|---|---|
DropShadowStyle | Used with text types | Color | GraphColors("gshadow") |
Graph | Graph size and outer border appearance |
OutputWidth
OutputHeight BorderColor BorderWidth CellPadding CellSpacing |
Not set
Not set Inherited Inherited 0 Inherited |
GraphAxisLines | X, Y, and Z axis lines |
Color
LineStyle LineThickness |
GraphColors("gaxis")
1 1px |
GraphBackground | Background of the graph |
Transparency
BackgroundColor Gradient_Direction StartColor EndColor BackgroundImage Image VerticalAlign TextAlign |
Not set
Colors("docbg") Not set Not set Not set Not set Not set Not set Not set |
GraphBorderLines | Border around graph wall, legend border, borders to complete axis frame |
Color
LineThickness LineStyle |
GraphColors("gborderlines")
1px 1 |
GraphCharts | All charts within the graph |
Transparency
BackgroundColor Gradient_Direction StartColor EndColor BackgroundImage Image VerticalAlign TextAlign |
Not set
Not set Not set Not set Not set Not set Not set Not set Not set |
GraphDataText | Text font and color for point and line labels |
Font or font-attributes*
Color |
GraphFonts("GraphDataFont")
Not set GraphColors("gtext") |
GraphFloor | 3D floor |
BackgroundColor
Transparency Gradient_Direction StartColor EndColor BackgroundImage Image VerticalAlign TextAlign |
GraphColors("gfloor")
Not set Not set Not set Not set Not set Not set Not set Not set |
GraphFootnoteText | Text font and color for footnotes |
Font or font-attributes*
Color |
GraphFonts("GraphFootnoteFont")
Not set GraphColors("gtext") |
GraphGridLines | Horizontal and vertical grid lines drawn at major tick marks |
Color
LineStyle LineThickness Transparency displayopts |
GraphColors("ggrid")
1 1px .5 "Auto" |
GraphGridLines | Horizontal and vertical grid lines drawn at major tick marks |
Color
LineStyle LineThickness Transparency displayopts |
GraphColors("ggrid")
1 1px .5 "Auto" |
GraphLegendBackground | Background color of the legend |
Color
Transparency |
Colors("glegend")
Not set |
GraphOutlines | Outline properties for fill areas such as bars, pie slices, and box plots. |
Color
LineStyle LineThickness |
GraphColors("goutlines")
1 1px |
GraphTitleText | Text font and color for titles |
Font or font-attributes*
Color |
GraphFonts("GraphTitleFont")
Not set GraphColors("gtext") |
GraphValueText | Text font and color for axis tick values and legend values |
Font or font-attributes*
Color |
GraphFonts("GraphValueFont")
Not set GraphColors("gtext") |
GraphWalls | Vertical walls bounded by axes |
Transparency
BackgroundColor Gradient_Direction StartColor EndColor BackgroundImage Image |
Not set
GraphColors("gwalls") Not set Not set Not set Not set Not set |
* Font-attributes can be one of the following: FONTFAMILY=, FONTSIZE=, FONTSTYLE=, FONTWEIGHT=. |
Style Element | Portion of Graph Affected | Default Attributes | Attribute Values in DEFAULT Style |
---|---|---|---|
ThreeColorAltRamp | Line contours, markers, and data labels with segmented range color response |
StartColor
NeutralColor EndColor |
GraphColors("gconramp3start")
GraphColors("gconramp3cneutral") GraphColors("gconramp3end") |
ThreeColorRamp | Gradient contours, surfaces, markers, nad data labels with continuous color response |
StartColor
NeutralColor EndColor |
GraphColors("gramp3cstart")
GraphColors("gramp3cneutral") GraphColors("gramp3cend") |
TwoColorAltRamp | Line contours, markers, and data labels with segmented range color response |
StartColor
EndColor |
GraphColors("gconramp2cstart")
GraphColors("gconramp2cend") |
TwoColorRamp | Gradient contours, surfaces, markers, and data labels with continuous color response |
StartColor
EndColor |
GraphColors("gramp2cstart")
GraphColors("gramp2cend") |
Style Element | Portion of Graph Affected | Default Attributes | Attribute Values in DEFAULT Style |
---|---|---|---|
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 |
GraphColors("gdata1")
GraphColors("gcdata1") "Circle" 1 Not set Not set Not set Not set Not set Not set Not set |
GraphData2 | Primitives related to 2nd grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata2")
GraphColors("gcdata2") "Plus" 4 Not set Not set Not set Not set Not set Not set Not set |
GraphData3 | Primitives related to 3rd grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata3")
GraphColors("gcdata3") "X" 8 Not set Not set Not set Not set Not set Not set Not set |
GraphData4 | Primitives related to 4th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata4")
GraphColors("gcdata4") "triangle" 5 Not set Not set Not set Not set Not set Not set Not set |
GraphData5 | Primitives related to 5th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata5")
GraphColors("gcdata5") "square" 14 Not set Not set Not set Not set Not set Not set Not set |
GraphData6 | Primitives related to 6th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata6")
GraphColors("gcdata6") "Asterisk" 26 Not set Not set Not set Not set Not set Not set Not set |
GraphData7 | Primitives related to 7th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata7")
GraphColors("gcdata7") "Diamond" 15 Not set Not set Not set Not set Not set Not set Not set |
GraphData8 | Primitives related to 8th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata8")
GraphColors("gcdata8") Not set 20 Not set Not set Not set Not set Not set Not set Not set |
GraphData9 | Primitives related to 9th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata9")
GraphColors("gcdata9") Not set 41 Not set Not set Not set Not set Not set Not set Not set |
GraphData10 | Primitives related to 10th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata10")
GraphColors("gcdata10") Not set 42 Not set Not set Not set Not set Not set Not set Not set |
GraphData11 | Primitives related to 11th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata11")
GraphColors("gcdata11") Not set 2 Not set Not set Not set Not set Not set Not set Not set |
GraphData12 | Primitives related to 12th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle MarkerSize LineThickness Gradient_Direction StartColor EndColor BackGroundImage Image |
GraphColors("gdata12")
GraphColors("gcdata12") Not set Not set Not set Not set Not set Not set Not set Not set Not set |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.