Data visualization with SAS programming

Hiding Vertical Bar Totals

Reply
User
Posts: 1

Hiding Vertical Bar Totals

[ Edited ]

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;
SAS Super FREQ
Posts: 862

Re: Hiding Vertical Bar Totals

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

User
Posts: 1

Re: Hiding Vertical Bar Totals

Thanks a bunch!

Post a Question
Discussion Stats
  • 2 replies
  • 153 views
  • 0 likes
  • 2 in conversation