Sample 24873: Control the placement of statistics
/*********************************************************/
/* This sample uses the INSIDE= and OUTSIDE= options on */
/* a VBAR3D statement to label statistics inside or */
/* outside the bars. These options could also be used */
/* with the VBAR statement, but are not supported with */
/* the HBAR/HBAR3D statements. */
/*********************************************************/
goptions reset=all ftext=swissb;
/* Define a data set for charting */
data a;
input state $ sales;
datalines;
NC 50
NY 10
NY 70
MA 10
MA 20
MA 30
CA 90
CA 10
CA 10
CA 20
;
title1 'Inside and Outside Options';
axis1 label=('Freq/Sales') minor=none;
axis2 label=('State');
/* Use the INSIDE= option to place the SUM value inside the bars. */
/* Use the OUTSIDE= option to place teh FREQ value outside the bars. */
proc gchart data=a;
vbar3d state / sumvar=sales inside=sum outside=freq cframe=white
raxis=axis1 maxis=axis2 width=5;
run;
quit;

This sample uses the INSIDE= and OUTSIDE= options on a VBAR3D statement to label statistics inside or outside the bars. These options could also be used with the VBAR statement, but are not supported with the HBAR/HBAR3D statements.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GCHART Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Labels
|
| Date Modified: | 2005-08-24 16:06:26 |
| Date Created: | 2004-11-11 11:07:53 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | n/a | n/a |