BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MorningStar
Calcite | Level 5

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;

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Try putting all text modifiers before the text you want modified

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

View solution in original post

3 REPLIES 3
ballardw
Super User

Try putting all text modifiers before the text you want modified

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

MorningStar
Calcite | Level 5

That was the problem, thank you!!!!

ArtC
Rhodochrosite | Level 12

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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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