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!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 948 views
  • 0 likes
  • 2 in conversation