proc template; define statgraph layoutdatalattice; begingraph; entrytitle "Annual Furniture Sales Comparisons"; layout datalattice rowvar=country columnvar=year / rowdatarange=union headerlabellocation=inside headerlabeldisplay=value headerbackgroundcolor=GraphAltBlock:color rowaxisopts=(griddisplay=on display=(tickvalues) altdisplay=(ticks) displaysecondary=(ticks) altdisplaysecondary=(ticks tickvalues) linearopts=(tickvalueformat=dollar12.)) columnaxisopts=(display=(tickvalues) timeopts=(tickvalueformat=monname3.)); layout prototype / cycleattrs=true; seriesplot x=month y=TotalActual / name="Actual"; seriesplot x=month y=TotalPredict / name="Predict"; endlayout; sidebar / align=bottom; discretelegend "Actual" "Predict" / border=false; endsidebar; endlayout; endgraph; end; run; proc summary data=sashelp.prdsal2 nway; class country year month; var actual predict; output out=prdsal2 sum=TotalActual TotalPredict; run; proc sgrender data=prdsal2 template=layoutdatalattice; run;
LABEL | Displays the axis label. A common label is displayed at the center of the grid, and the label applies to all the primary axes in the row or column. This label is overridden by a label specified on the DISPLAY= option. |
LINE | Displays the axis line. |
TICKS | Displays the tick marks. |
TICKVALUES | Displays the values that are represented by the major tick marks. |
LABEL | Displays the axis label. A common label is displayed at the center of the grid, and the label applies to all the secondary axes in the row or column. This label is overridden by a label specified on the DISPLAY= option. |
LINE | Displays the axis line. |
TICKS | Displays the tick marks. |
TICKVALUES | Displays the values that are represented by the major tick marks. |
LABEL | Displays the axis label. A common label is displayed at the center of the grid, and the label applies to all the primary axes in the row or column. This label overrides a label specified on the ALTDISPLAY= option. |
LINE | Displays the axis line. |
TICKS | Displays the tick marks. |
TICKVALUES | Displays the values that are represented by the major tick marks. |
LABEL | Displays the axis label. A common label is displayed at the center of the grid, and the label applies to all the secondary axes in the row or column. This label overrides a label specified on the ALTDISPLAYSECONDARY= option. |
LINE | Displays the axis line. |
TICKS | Displays the tick marks. |
TICKVALUES | Displays the values that are represented by the major tick marks. |
THIN | Some tick values are removed. |
ROTATE | Tick values are rotated 45 degrees. |
ROTATETHIN | Attempt ROTATE policy and then THIN policy. |
STAGGER | Tick values alternate between two rows. |
STAGGERROTATE | Attempt STAGGER policy and then ROTATE policy. |
STAGGERTHIN | Attempt STAGGER policy and then THIN policy. |
STAGGERTRUNCATE | Attempt STAGGER policy and then TRUNCATE policy. |
TRUNCATE | Tick values are shortened when they exceed a certain number of characters. |
TRUNCATEROTATE | Attempt TRUNCATE policy and then ROTATE policy. |
TRUNCATESTAGGER | Attempt TRUNCATE policy and then STAGGER policy. |
TRUNCATETHIN | Attempt TRUNCATE policy and then THIN policy. |
MAXWIDTH = integer | Specifies the maximum width for displayed tick values. Values might be rounded or converted to E-notation to fit into this width. |
MAXDECIMALS = integer | Specifies the maximum number of decimals for displayed tick values. Values might be rounded or converted to E-notation to fit into this width. MAXWIDTH > MAXDECIMALS |
PREFERREDDECIMALS = integer | Specifies the number of decimal places desired for most values. The actual number might vary based on other constraints. |
EXTRACTSCALE = boolean | Specifies whether to extract some factor of ten from all tick values in order to reduce the overall width of the tick values and improve legibility. The extracted factor is concatenated to the existing axis label. Example of revised axis label: Number Sold (x1000) |
START = number | Specifies the value for the first tick mark. |
END = number | Specifies the value for the last tick mark. |
INCREMENT = number | Specifies the increment for intermediate tick marks between the first and last tick marks. The END value always controls the last tick mark. The interval between the last tick mark and the previous tick mark might not necessarily be the INCREMENT value. |