![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/GRAPH Software: Reference |
| Annotate function: | LABEL (default) |
| Annotate variables: | MIDPOINT |
| POSITION | |
| SUBGROUP | |
| Sample library member: | GR10N02 |
See The GCHART Procedure for more information on creating bar charts.
| | libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
colors=(blue green red) ctext=black htitle=6
ftitle=swissb htext=4 ftext=swiss; |
| | data sold; length type $ 10; input city $ units type $ ; datalines; Atlanta 99 Printers Atlanta 105 Plotters ...more data lines... Sydney 136 Plotters Sydney 100 Terminals ; run; |
| | data barlabel;
length color style $ 8;
retain color 'white' when 'a' style 'swissb'
xsys ysys '2' position 'E' size 4 hsys '3';
set sold;
midpoint=city;
subgroup=type;
text=left(put(units,5.));
run; |
| | title 'Orders Received'; footnote h=3 j=r 'GR10N02 '; |
| | axis1 label=none major=none minor=none style=0
value=none;
axis2 label=none; |
| | proc gchart data=sold;
vbar city / type=sum
sumvar=units
subgroup=type
width=17
raxis=axis1
maxis=axis2
annotate=barlabel;
run;
quit; |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.