Controlling The Appearance of Your Graphs |
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 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 |
1
Elements
in the GraphColors style element that are not included in this
table are used with template-based (ODS Graphics) output only. (See "Device-Based
Graphics And Template-Based Graphics" in Chapter 1, "Introduction
to SAS/GRAPH Software".)
2 The gtext attribute does not affect text that is not rendered as part of the graph. See also "Controlling Titles and Footnotes with Java and ActiveX Devices in HTML Output" in Chapter 13, "Managing Your Graphics With ODS". |
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* | 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 |
* The 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)
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 ODS FONTS in the SAS registry. See Changing SAS Registry Settings for ODS in SAS Output Delivery System: User's Guide for more information.
specifies the Arial font family. If SAS cannot find the first font listed, it tries to find the second font listed.
specifies the san-serif font family. If SAS cannot find the specific fonts listed, then it looks for a font in the san-serif font family.
specifies the weight and style that should be used.
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 on registering TrueType fonts. See Base SAS Procedures Guide for information on the FONTREG procedure.
Style Elements For Use With Device-Based 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 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 on the style attributes that can be specified in each style element, see Style Attributes and Their Values in the section TEMPLATE Procedure: Creating a Style Definition in SAS Output Delivery System: User's Guide.
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 © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.