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;
You have assigned the values to a YAXISOPTS statement but apparently want the values to appear on the XAXIS.
Try using XAXISOPTS.
You have assigned the values to a YAXISOPTS statement but apparently want the values to appear on the XAXIS.
Try using XAXISOPTS.
that worked -- thanks!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.