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-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
  • 2 replies
  • 2107 views
  • 1 like
  • 2 in conversation