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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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