Sample 24882: Display multiple line axis values
/*******************************************************/
/* This sample uses the SPLIT= option on an AXIS */
/* statement to specify the split character to be used */
/* to automatically place multiple lines of text for */
/* axis values. */
/*******************************************************/
goptions reset=all ftext=swiss;
/* Define a data set for charting */
data a;
input PRODUCT $15. SALES;
datalines;
Tennis,Shoes 27
Tennis,Shorts 10
Running,Shoes 68
Running,Shorts 61
;
/* Use the SPLIT= option to split each axis value at the "," and center-justify */
/* Note: The split character does not have to be a comma, and it will not show */
/* in the axis label/value. */
axis1 split="," value=(j=c a=0) label=none;
axis2 minor=none label=('SALES');
title 'Multiple line axis values using the SPLIT= option';
/* Produce the chart */
proc gchart data=a;
vbar PRODUCT / sumvar=SALES maxis=axis1 raxis=axis2 descending;
run;
quit;

This sample uses the SPLIT= option on an AXIS statement to specify the split character to be used to automatically place multiple lines of text for axis values.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GCHART Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Elements ==> Axis
|
| Date Modified: | 2005-08-24 16:06:28 |
| Date Created: | 2004-11-11 11:07:54 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | n/a | n/a |