BookmarkSubscribeRSS Feed
MFOLEY20
Calcite | Level 5

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;
2 REPLIES 2
DanH_sas
SAS Super FREQ

Remove the MEAN option, and the labels will go away.

MFOLEY20
Calcite | Level 5

Thanks a bunch!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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