Sample 24863: Overlay a plot line on a vertical bar chart
/***********************************************************/
/* GBARLINE is supported with all SAS/GRAPH device drivers */
/* starting with SAS 9.1. */
/***********************************************************/
goptions reset=all htext=1.25 htitle=2;
data nyse;
informat day date9.;
format day date5.;
input day $ high low close volume;
volume=volume/1000;
datalines;
02AUG2002 10478.76 10346.24 10426.91 1908809
03AUG2002 11042.92 10298.44 10274.65 1807543
04AUG2002 10498.22 10400.31 10456.43 1500656
05AUG2002 10694.47 10636.32 10762.98 1498403
;
title1 "NYSE Closing Price and Volume By Day";
symbol1 i=join v=dot c=black;
proc gbarline data=nyse;
bar day / sumvar=volume discrete patternid=midpoint width=15;
plot / sumvar=close;
run;
quit;

The GBARLINE procedure produces bar line charts. Bar line charts are vertical bar charts with a plot overlay. These charts graphically represent the value of a statistic calculated for one or more variables in an input SAS data set. The charted variables can be either numeric or character.
| Type: | Sample |
| Topic: | Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Charts ==> Bar SAS Reference ==> Procedures ==> GBARLINE
|
| Date Modified: | 2005-08-24 16:06:24 |
| Date Created: | 2004-11-11 11:07:52 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 9.1 TS1M0 | n/a |