Date: Mon, 2 Apr 2001 15:24:16 GMT
Reply-To: Ron Coleman <rcoleman@ATT.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ron Coleman <rcoleman@ATT.NET>
Subject: Re: Gcharts and formating
In order to rotate your labels you need to have a quick tour of the Angle
and Rotate options in the AXIS statement.
Angle moves the baseline on which your text rests and Rotate twists each
individual character within your text.
To make your label have a 45 degree tilt you would use the Angle option.
0 degrees is a horizontal line at the 3 o'clock position. That is the same
as Angle=0. Positive values for Angle move the baseline in a
counter-clockwise rotation. Angle = 30 would tilt your baseline so it
begins at the center of the clock and extends through the 2 o'clock
position. Angle=90 will make your labels have a vertical baseline but you
would have to tilt your head to the left in order to read it.
Rotate will twist each character: With Angle= -90 and Rotate=90 a label
would appear as:
The final piece is using these options within the Label option of the AXIS
will give you labels at a 45 degree angle.
Links Analytical, Inc.
A SAS Quality Partner
"Graeme Kirton" <gkirton@FILCS.COM> wrote in message
> Im having a time formatting my graphs, The x axis labels are too long and
> truncating over one another, I was wanting some help on how to either make
> text smaller, or say rotate the name slightly so it fits.
> Anyone.................... Thanx.
> goptions reset=global gunit=pct border cback=white
> colors=(blue red) ctext=black
> ftitle=swissb ftext=swiss htitle=4 htext=2;
> axis1 rotate=100
> proc gchart data=summary2;
> vbar type / sumvar=value
> title1 "Cp / Cpk";
> TITLE2 H=2 F=Arial "'Produced -'&sysdate /'FROM'&frommm
> / 'DEVICE'&device /'Test'&test";
> WARNING: The TITLE statement is ambiguous due to invalid options or
> 2322 TITLE2 H=2 F=Arial "'Produced -'&sysdate /'FROM'&frommm
> /'TO'&tomm / 'DEVICE'&device /'Test'&test";
> 2323 run;
> WARNING: AXIS statement 1 not found. The default axis description will be
> WARNING: The bottom horizontal axis labeled Variable Name could not be fit
> specified. The axis values will overwrite.
> WARNING: There was not enough room to use the specified width of 5 and
> 0 for the bars.
> NOTE: Graph's name, GRAPH, changed to GRAPH17. GRAPH is already used or
> valid SAS name.
> ERROR: Menu failed to load because of an error opening the SASHELP
> ERROR: Menu failed to load because of an error reading the SASHELP
> 2324 quit;
> NOTE: There were 20 observations read from the data set WORK.SUMMARY2.
> NOTE: PROCEDURE GCHART used:
> real time 0.79 seconds
> cpu time 0.07 seconds