Controlling The Appearance of Your Graphs |
The following style elements affect statistical graphics and can be specified by GTL appearance options or used in styles.
Certain style elements were created to be used with specific plots. 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 it affects or was created to use with, and the default attribute values. Attribute values can be changed with PROC TEMPLATE, as stated above.
Style Element | Portion of Graph Affected | Recognized Attributes | Attribute Values in DEFAULT Style |
---|---|---|---|
Graph | Graph size and outer border appearance |
OutputWidth
OutputHeight BorderColor BorderWidth CellPadding CellSpacing |
Not set
Not set Inherited Inherited 0 Inherited |
GraphAnnoLine | Annotation lines |
ContrastColor
LineStyle LineThickness |
GraphColors("gcdata")
1 1px |
GraphAnnoShape | Annotation closed shapes such as circles, and squares |
Color
ContrastColor LineThickness LineStyle Transparency |
GraphColors("gcdata"
GraphColors("gcdata") 2px 1 Not set |
GraphAnnoText | Annotation text |
Font
or font-attributes* Color |
GraphFonts("annofont")
Not set GraphColors("gtext") |
GraphAxisLines | X, Y and Z axis lines |
ContrastColor
LineStyle LineThickness TickDisplay |
GraphColors("gaxis")
1 1px "Outside" |
GraphBackground | Background of the graph |
Color
Transparency |
Colors("docbg")
Not set |
GraphBorderLines | Border around graph wall, legend border, borders to complete axis frame |
ContrastColor
LineThickness LineStyle |
GraphColors("gborderlines")
1px 1 |
GraphDataText | Text font and color for point and line labels |
Font
or font-attributes* Color |
GraphFonts("GraphDataFont")
Not set GraphColors("gtext") |
GraphFootnoteText | Text font and color for footnote(s) |
Font
or font-attributes* Color |
GraphFonts("GraphFootnoteFont")
Not set GraphColors("gtext") |
GraphGridLines | Horizontal and vertical grid lines drawn at major tick marks |
ContrastColor
LineStyle LineThickness Transparency DisplayOpts |
GraphColors("ggrid")
1 1px Not set "Auto" |
GraphHeaderBackground | Background color of the legend title |
Color
Transparency |
Colors("gheader")
Not set |
GraphLabelText | Text font and color for axis labels and legend titles |
Font
or font-attributes* Color |
GraphFonts("GraphLabelFont")
Not set GraphColors("glabel") |
GraphLegendBackground | Background color of the legend |
Color
Transparency |
Colors("glegend")
Not set |
GraphOutlines | Outline properties for fill areas such as bars, pie slices, box plots, ellipses, and histograms |
Color
ContrastColor LineStyle LineThickness |
GraphColors("goutlines")
GraphColors("goutlines") 1 1px |
GraphReference | Horizontal and vertical reference lines and drop lines |
ContrastColor
LineStyle LineThickness |
GraphColors("greferencelines")
5 1px |
GraphTitleText | Text font and color for title(s) |
Font
or font-attributes* Color |
GraphFonts("GraphTitleFont")
Not set GraphColors("gtext") |
GraphUnicodeText | Text font for unicode values |
Font
orfont-attributes* Color |
GraphFont("GraphUnicodeFont")
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 wall(s) bounded by axes |
Color
Transparency FrameBorder LineThickness LineStyle ContrastColor |
GraphColors("gwalls")
Not set On 1px 1 GraphColors("gaxis") |
* Font-attributes can be one of the following: FONTFAMILY=, FONTSIZE=, FONTSTYLE=, FONTWEIGHT=. |
Style Element | Portion of Graph Affected | Recognized Attributes | Attribute Values in DEFAULT Style | |
---|---|---|---|---|
GraphBoxMean | Marker for mean |
ContrastColor
MarkerSize MarkerSymbol |
GraphColors("gcdata")
9px "Diamond" |
|
GraphBoxMedian | Line for median |
ContrastColor
LineStyle LineThickness |
GraphColors("gcdata")
1 1px |
|
GraphBoxWhisker | Box whiskers and serifs |
ConstrastColor
LineStyle LineThickness |
GraphColors("gcdata")
1 1px |
|
GraphConfidence | Primary confidence lines and bands, colors for bands and lines |
ContrastColor
Color MarkerSize MarkerSymbol LineStyle LineThickness |
GraphColors("gcconfidence")
GraphColors("gconfidence") 7px "Diamond" 2 1px |
|
GraphConfidence2 | Secondary confidence lines and bands, color for bands, amd contrast color for lines |
ContrastColor
Color MarkerSize MarkerSymbol LineStyle LineThickness |
GraphColors("gcconfidence2")
GraphColors("gconfidence2") 7px "Triangle" 41 1px |
|
GraphConnectLine | Line for connecting boxes or bars |
ContrastColor
LineStyle LineThickness |
GraphColors("connectLine")
1 1px |
|
GraphDataDefault | Primitives related to non-grouped data items, colors for filled areas, markers, and lines |
Color
ContrastColor MarkerSymbol MarkerSize LineStyle LineThickness StartColor NeutralColor EndColor |
GraphColors("gdata")
GraphColors("gcdata") "circle" 7px 1 1px GraphColors("gramp3cstart") GraphColors("gramp3cneutral") GraphColors("gramp3cend") |
|
GraphError | Error line or error bar fill, ContrastColor for lines, Color for bar fill |
ContrastColor
Color LineStyle Transparency |
GraphColors("gcerror")
GraphColors("gerror") 5 Not set |
|
GraphFit | Primary fit lines such as a normal density curve |
ContrastColor
Color MarkerSize MarkerSymbol LineStyle LineThickness |
GraphColors("gcfit")
GraphColors("gfit") 7px "Circle" 1 2px |
|
GraphFit2 | Secondary fit lines such as a kernel density curve |
ContrastColor
Color MarkerSize MarkerSymbol LineStyle LineThickness |
GraphColors("gcfit")
GraphColors("gfit") 7px "X" 5 2px |
|
GraphMissing | Properties for graph items representing missing values |
ContrastColor
Color MarkerSymbol MarkerSize LineStyle LineThickness Transparency |
GraphColors("gcmissing")
GraphColors("gmissing") "square" 7px 1 1px Not set |
|
GraphOutlier | Outlier data for the graph |
ContrastColor
Color MarkerSize MarkerSymbol LineStyle LineThickness |
GraphColors("goutlier")
GraphColors("gcoutlier") 7px "Circle" 42 2px |
|
GraphPrediction | Prediction lines |
ContrastColor
Color LineStyle LineThickness MarkerSize MarkerSymbol |
GraphColors("gcpredict")
GraphColors("gpredict") 4 2px 7px "Plus" |
|
GraphPredictionLimits | Fills for prediction limits |
ContrastColor
Color MarkerSize MarkerSymbol |
GraphColors("gcpredictlim")
GraphColors("gpredictlim") 7px "Chain" |
|
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 |
GraphColors("gcdata")
GraphColors("gdata") "Square" 11px 1 5px |
|
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, and 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 | Recognized 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 |
GraphColors("gdata1")
GraphColors("gcdata1") "Circle" 1 |
GraphData2 | Primitives related to 2nd grouped data items |
Color
ContrastColor MarkerSymbol LineStyle |
GraphColors("gdata2")
GraphColors("gcdata2") "Plus" 4 |
GraphData3 | Primitives related to 3rd grouped data items |
Color
ContrastColor MarkerSymbol LineStyle |
GraphColors("gdata3")
GraphColors("gcdata3") "x" 8 |
GraphData4 | Primitives related to 4th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle |
GraphColors("gdata4")
GraphColors("gcdata4") "Triangle" 5 |
GraphData5 | Primitives related to 5th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle |
GraphColors("gdata5")
GraphColors("gcdata5") "Square" 14 |
GraphData6 | Primitives related to 6th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle |
GraphColors("gdata6")
GraphColors("gcdata6") "Asterisk" 26 |
GraphData7 | Primitives related to 7th grouped data items |
Color
ContrastColor MarkerSymbol LineStyle |
GraphColors("gdata7")
GraphColors("gcdata7") "Diamond" 15 |
GraphData8 | Primitives related to 8th grouped data items |
Color
ContrastColor LineStyle |
GraphColors("gdata8")
GraphColors("gcdata8") 20 |
GraphData9 | Primitives related to 9th grouped data items |
Color
ContrastColor LineStyle |
GraphColors("gdata9")
GraphColors("gcdata9") 41 |
GraphData10 | Primitives related to 10th grouped data items |
Color
ContrastColor LineStyle |
GraphColors("gdata10")
GraphColors("gcdata10") 42 |
GraphData11 | Primitives related to 11th grouped data items |
Color
ContrastColor LineStyle |
GraphColors("gdata11")
GraphColors("gcdata11") 2 |
GraphData12 | Primitives related to 12th grouped data items |
Color
ContrastColor |
GraphColors("gdata12")
GraphColors("gcdata12") |
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 " |
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" |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.