The SAS Output Delivery System and reporting techniques

Problem angling gchart axis labels in ods rtf output

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Problem angling gchart axis labels in ods rtf output

The below code produces a bar chart without error in SAS 9.3, and I am able to open the rtf file.  However, neither of the angle suboptions is effective, either in the value option for axis1 or the label option for axis2.  As an aside, the split character does not insert three carraige returns as desired, although it does insert one.   Any suggestions or related documentation would be greatly appreciated, most especially with regard to angling the labels! Thanks for looking!

ods rtf file=tables style=rtf;

axis1 label=("Month and Year of Patient Visit")

         order=("01JAN2010"D TO "31DEC2011"D BY MONTH)

         value=("Jan" "Feb" "Mar" "Apr" "May" "Jun///2010" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"

                   "Jan" "Feb" "Mar" "Apr" "May "Jun///2011" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"  ANGLE=-90)

         split="/";

axis2 label=("Number of Cases" j=l font=bold a=90)

         order=(0 to 10 by 2);

proc gchart data=hepa;

vbar monthyear / sumvar=count discrete space=0 maxis=axis1 raxis=axis2;

run;

quit;

ods rtf close;


Accepted Solutions
Solution
‎10-05-2012 01:32 PM
Grand Advisor
Posts: 10,210

Re: Problem angling gchart axis labels in ods rtf output

Try putting all text modifiers before the text you want modified

label = (a=90 "Number of Cases")

View solution in original post


All Replies
Solution
‎10-05-2012 01:32 PM
Grand Advisor
Posts: 10,210

Re: Problem angling gchart axis labels in ods rtf output

Try putting all text modifiers before the text you want modified

label = (a=90 "Number of Cases")

New Contributor
Posts: 2

Re: Problem angling gchart axis labels in ods rtf output

That was the problem, thank you!!!!

Valued Guide
Posts: 632

Re: Problem angling gchart axis labels in ods rtf output

You can also often split lines by repeating the justification. as in j=l xxxxxxxxxxx j=l.  the second will split the line.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 307 views
  • 0 likes
  • 3 in conversation