I am using this code:
pattern1 color=green;
axis1 label=(a=0 f= "Arial/bold" "Revenue" ) color=black minor =(n=2) value=(angle=0);
axis2 label=(f="Arial/bold" "Trading Category") color=black value=(angle=90);
proc gchart data=Bla(where=(Bla = "&Bla." and Bla='YES'));
title1 f="Arial/bold" c=black &Title.;
format Bla NLMNLGBP32.0;
vbar3d TBla / sumvar=Bla
width=15
outside=sum
descending
raxis=axis1
maxis=axis2
;
run;
quit;Is there a way to make the x and y axis values bold arial? Thanks!
Use the VALUE= option on the AXIS statement
See example here. Proc REGISTRY will list the fonts that are available
proc registry
startat="CORE\PRINTING\FREETYPE\FONTS"
list
levels=1
;
run;
goptions reset=axis;
axis1
label=(font="Arial/bold/italic" height=20pt "Y axis")
value=(font="Papyrus" height=10pt)
;
axis2
label=(font="Arial Narrow/bold/italic" height=20pt "midpoint axis (x)")
value=(font="Papyrus" height=10pt)
;
proc gchart data=sashelp.cars;
vbar type /
raxis=axis1
maxis=axis2
;
run;
quit;
Please also have a look at ODS Graphicsto see new ways of creating plots
Look at this blog https://blogs.sas.com/content/graphicallyspeaking/ for plenty of great examples
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.