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
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!
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.