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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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