| Date: | Sun, 12 Dec 2004 09:04:44 -0800 |
| Reply-To: | Tomislav Svoboda <tomislavtemp@HOTMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Tomislav Svoboda <tomislavtemp@HOTMAIL.COM> |
| Organization: | http://groups.google.com |
| Subject: | raxis or Y-axis format for GCHART |
| Content-Type: | text/plain; charset=ISO-8859-1 |
Hi all,
I would like to fix the label on the Y axis of the code below so that
the label 'Utilization Rate' isn't pushed against the numbers. Can
someone help me with this formatting problem?
Also is there a way to make the bars in the first 3 groups (PD, PD,DP,
NDP) one colour and the bars in the last 2 groups (H, LIH) another
colour?
Thanks
Tomislav
tomislav . svoboda 'at' utoronto . ca
/*The following produces the charts for the before
and after tables*/
data test;
length group $ 5;
input
group $ time rate;
cards;
PD -9 5
PD 18 3
PD,DP -9 4
PD,DP 18 1
NPD -9 3
NPD 18 3.2
H -9 .9
H 18 .875
LIH -9 1.1
LIH 18 1.21
run;
goptions reset = all;
*goptions ftitle='times new roman/bold' ftext='times new roman'
htitle=4 pct hby=4 pct;
goptions ftitle='times new roman/bold';
/* Assign pattern characteristics */
*pattern v=s c=grey;
/* Assign axis definitions */
axis1 label=none value=(a=0 h=1 f='times new roman' );
axis2 label=(a=90 f='times new roman' h=1.4 "Utilization Rate")
value=(j=c h=1 f='times new roman');
axis3 label=none split="," value=(j=c a=0 h=1 f='times new roman' )
order = ('PD' 'PD,DP' 'NPD' 'H' 'LIH');
proc format;
value midform -9='Before' 18='After';
proc gchart data=test;
vbar time / sumvar = rate group = group space = 0.5
midpoints=-9 18
maxis=axis1 raxis=axis2 gaxis=axis3 gspace = 2 patternid =
midpoint;
*format time midform.;
run;
|