I'm using SAS EG 5.1. Is there an option for hiding the totals that display at the top of each bar with the vbar statement? I think NOSTATS may be the option for hbar. Is there an equivilent option for vbar? My code is included below and I've attached my output if it helps. Thanks.
proc gchart data=two ;
vbar var1 / type=mean
sumvar=var2
discrete
width=5
gspace=8
mean
space=0
group=year
subgroup=category2
axis=axis1
maxis=axis2
gaxis=axis3
ctext=black
noframe
nolegend;
axis1 label=(f='helvetica' c=black h=1.2 r=0 a=90 "Label")
value=(f='helvetica' h=.7 c=black);
axis2 label=("") value=(f='helvetica' h=.7 c=black);
axis3 label=("") value=(f='helvetica' h=.7 c=black);
pattern1 value=solid color=tan;
pattern2 value=solid color=red;
pattern3 value=solid color=green;
pattern4 value=solid color=orange;
pattern5 value=solid color=purple;
pattern6 value=solid color=vlibg;
pattern7 value=solid color=yellow;
pattern8 value=solid color=blue;
run;
quit;
Remove the MEAN option, and the labels will go away.
Thanks a bunch!
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.