Sample 25507: Basic bar line chart with styles using PROC GBARLINE
This sample is from the "SAS/GRAPH Software: Reference, Version 9.1", Volume 1, Chapter 28.
For additional information on the sample refer to this book.
/*+-------------------------------------------------------------+
| S A S S A M P L E L I B R A R Y |
| |
| NAME: GBLSTOCK |
| TITLE: GBLSTOCK-Basic Bar Line Chart with Styles |
| PRODUCT: GRAPH |
| SYSTEM: ALL |
| KEYS: GRAPHICS GBARLINE |
| PROCS: GBARLINE |
| DATA: INTERNAL |
| |
| SUPPORT: GRAPHICS STAFF UPDATE: |
| REF: SAS/GRAPH REFERENCE GUIDE |
+-------------------------------------------------------------+*/
/* Set the graphics environment */
goptions reset=all device=activex;
/* Change the following line before running this program */
/* to specify the path and filename of the output file. */
/* Uncomment the line. */
*filename odsout 'C:\your_web_path\';
/* Open the ODS HTML output destination */
ods html file='gblstock.htm' path=odsout style=analysis;
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
06AUG2002 10801.12 10695.13 10759.48 1695602
;
run;
title1 "NYSE Closing Price and Volume By Day";
footnote j=r h=2 'GBLSTOCK';
proc gbarline data=nyse;
bar day / sumvar=volume discrete;
plot /sumvar=close;
run;
quit;
ods html close;

This example produces a basic bar line graph. The vertical bars indicate the volume, and the overlay plot graphs the closing price. It uses the ODS style ANALYSIS.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GBARLINE Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Charts ==> Special Charts
|
| Date Modified: | 2005-07-23 03:02:37 |
| Date Created: | 2005-05-23 14:12:04 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 9.1 TS1M0 | n/a |