Sample 24868: Place a reference line in front of a bar
/******************************************************/
/* This sample uses the FRONTREF option to indicate */
/* that reference lines should appear in front of the */
/* bars. The default location for reference lines is */
/* behind the bars. */
/******************************************************/
goptions reset=all ftext=swissb;
/* Define a data set for charting */
data a;
input YEAR 4. CNT;
datalines;
1997 25
1998 30
1999 20
2000 10
2001 60
;
title1 'Reference Line In Front';
pattern1 c=cyan;
axis1 minor=none label=('CNT') offset=(0,0);
/* Use the FRONTFREF option to place reference lines */
/* in front of the bars */
proc gchart data=a;
vbar3d YEAR / sumvar=CNT discrete raxis=axis1
coutline=black cframe=yellow width=5
vref=30 inside=sum frontref;
run;
quit;

This sample uses the FRONTREF option to indicate that reference lines should appear in front of the bars. The default location for reference lines is behind the bars.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GCHART Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Reference Lines
|
| Date Modified: | 2005-08-24 16:06:25 |
| Date Created: | 2004-11-11 11:07:52 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | n/a | n/a |