Sample 24870: Modify the HBAR statistics label with PROC GCHART
The sample code on the Full Code tab uses the SUMLABEL option in the HBAR3D statement of PROC GCHART to modify the statistics label displayed to the right of the graph. This option is also valid in the HBAR statement.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample uses the SUMLABEL option in the HBAR3D statement of PROC GCHART to modify the statistics label displayed to the right of the graph. This option is also valid in the HBAR statement.
The graphics output on the Results tab was produced using SAS® 9.2. Submitting the sample code with releases of SAS prior to SAS 9.2 might produce different results.
/* Set the graphics environment */
goptions reset=all cback=white border
htitle=12pt htext=10pt;
/* Define a data set for charting */
data a;
input State $ Sales;
datalines;
NC 50
NY 70
MA 30
CA 90
;
run;
title1 'HBAR Statistics Label';
axis1 label=('Sales');
/* 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=4 space=2 raxis=axis1;
run;
quit;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample uses the SUMLABEL option on the HBAR3D statement of PROC GCHART to modify the statistics label displayed to the right of the graph. This option is also valid in the HBAR statement.
Type: | Sample |
Topic: | SAS Reference ==> Procedures ==> GCHART Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Types ==> Charts ==> Bar
|
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 |