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
Graeme,
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:
L
a
b
e
l
The final piece is using these options within the Label option of the AXIS
statement:
AXIS Label=(a=45);
will give you labels at a 45 degree angle.
Ron
--
Ron Coleman
Links Analytical, Inc.
A SAS Quality Partner
"Graeme Kirton" <gkirton@FILCS.COM> wrote in message
news:80256A22.00463120.00@fil-notes01.filcs.com...
> Folks,
>
> Im having a time formatting my graphs, The x axis labels are too long and
keep
> truncating over one another, I was wanting some help on how to either make
the
> text smaller, or say rotate the name slightly so it fits.
> Anyone.................... Thanx.
>
> CODE--------------------
> goptions reset=global gunit=pct border cback=white
> colors=(blue red) ctext=black
> ftitle=swissb ftext=swiss htitle=4 htext=2;
>
> axis1 rotate=100
> FONT=SWISS
> offset=(1,0)
> split=",";
>
> proc gchart data=summary2;
> vbar type / sumvar=value
> subgroup=type
> group=_VAR_
> space=0
> gspace=5
> ascending
> frame
> outside=SUM
> space=0
> width=5
> gaxis=axis1
> name='graph';
> title1 "Cp / Cpk";
> TITLE2 H=2 F=Arial "'Produced -'&sysdate /'FROM'&frommm
/'TO'&tomm
> / 'DEVICE'&device /'Test'&test";
> run;
> quit;
>
> LOG------------------------
> WARNING: The TITLE statement is ambiguous due to invalid options or
unquoted
> text.
> 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
used.
> WARNING: The bottom horizontal axis labeled Variable Name could not be fit
as
> specified. The axis values will overwrite.
> WARNING: There was not enough room to use the specified width of 5 and
space of
> 0 for the bars.
> NOTE: Graph's name, GRAPH, changed to GRAPH17. GRAPH is already used or
not a
> valid SAS name.
> ERROR: Menu failed to load because of an error opening the SASHELP
> .CORE.UNIVPRT.PMENU.
> ERROR: Menu failed to load because of an error reading the SASHELP
> .GRAPH.GW1.PMENU.
> 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