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!
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.