BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Varrelle
Quartz | Level 8

Hi SAS community,

 

I'm trying to get all tick values to display from 0 to 100 by 10, but as you can see only 0 to 50 is displayed.  How can I force the graph to display all the values I specified in the TICKVALUELIST= option?

 

Please see my code and attached .rtf file output for context.

 

Thanks.

proc template;
	define statgraph _test;
		begingraph;
			layout overlay/
				yaxisopts=(griddisplay=on linearopts=(viewmin=0 viewmax=100 tickvaluelist=(0 10 20 30 40 50 60 70 80 90 100)));
					barchart x=type y=mpg_city/
						stat=mean orient=horizontal dataskin=crisp fillattrs=graphdata3 barlabel=true barlabelformat=4.1;
			endlayout;
		endgraph;
	end;
run;

title 'tick value test';
ods graphics/ reset width=4in height=2.5in;

%let path=C:\Users\XXXXXX\Desktop;

ods rtf path="&path";
ods rtf file="ods_test.rtf"; 
ods escapechar='~';

proc sgrender template=_test
data=sashelp.cars; 
run;


ods rtf close;
1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

You have assigned the values to a YAXISOPTS statement but apparently want the values to appear on the XAXIS.

 

Try using XAXISOPTS.

View solution in original post

2 REPLIES 2
ballardw
Super User

You have assigned the values to a YAXISOPTS statement but apparently want the values to appear on the XAXIS.

 

Try using XAXISOPTS.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 3608 views
  • 0 likes
  • 2 in conversation