Data visualization with SAS programming

make tick mark values of x and y axis bold - proc gchart

Reply
Regular Contributor
Posts: 201

make tick mark values of x and y axis bold - proc gchart

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!

SAS Super FREQ
Posts: 806

Re: make tick mark values of x and y axis bold - proc gchart

Posted in reply to csetzkorn

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

Regular Contributor
Posts: 201

Re: make tick mark values of x and y axis bold - proc gchart

Posted in reply to Bruno_SAS
Thanks - learning about value= ... was enough (-:
Ask a Question
Discussion stats
  • 2 replies
  • 125 views
  • 1 like
  • 2 in conversation