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;
Try putting all text modifiers before the text you want modified
label = (a=90 "Number of Cases")
Try putting all text modifiers before the text you want modified
label = (a=90 "Number of Cases")
That was the problem, thank you!!!!
You can also often split lines by repeating the justification. as in j=l xxxxxxxxxxx j=l. the second will split the line.
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!
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.
Ready to level-up your skills? Choose your own adventure.