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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 859 views
  • 0 likes
  • 3 in conversation