Sample 24870: Control HBAR statistics label
/*******************************************************/
/* This sample uses the SUMLABEL= option on the HBAR3D */
/* statement to replace the default column header for */
/* the statistics displayed to the right of the bars. */
/* This option is also valid on the HBAR statement. */
/*******************************************************/
goptions reset=all ftext=swiss;
/* Define a data set for charting */
data a;
input state $ sales;
datalines;
NC 50
NY 70
MA 30
CA 90
;
title1 'HBAR Statistics Label';
/* Generate a 3D horizontal bar chart with a new label for the statistics */
proc gchart data=a;
hbar3d state / sumvar=sales sumlabel='New Label' width=5;
run;
quit;

This sample uses the SUMLABEL= option on the HBAR3D the statistics displayed to the right of the bar. This option is also valid on the HBAR statement.
| 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 |