BookmarkSubscribeRSS Feed
csetzkorn
Lapis Lazuli | Level 10

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!

2 REPLIES 2
BrunoMueller
SAS Super FREQ

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

csetzkorn
Lapis Lazuli | Level 10
Thanks - learning about value= ... was enough (-:

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2470 views
  • 1 like
  • 2 in conversation