BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
katslau
Fluorite | Level 6

Hi,

I'm new to SAS programs. I inherited this program from an ex-coworker and needed to create new graph. I'm making cluster bar charts and don't want to display the data number at the bottom of the bars. How can I remove them? 

Here's the code:

 

title "OVERALL HEALTH & WELL-BEING";
proc sgplot data= sasdata.cruise&date;
vbar Q156_1 /stat=percent datalabel;
xaxistable Q156_1 / location=inside stat=freq;

%include " &fmtpath\sas format statement_v3.sas";
%include " &fmtpath\sas labels_v3.sas";
title2 "A3.In the past 7 days,I feel close to my friends";
xaxis display=(nolabel); run; title2; quit;

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

The XAXISTABLE statement is used to create/display summary values. If I understand your request then remove or comment the statement so it does not execute.

 

Suggestion: when posting questions about graphing procedures it is a good idea to post a copy of the generated image and then you tell us about elements that need to change by referencing the picture. "Data labels" at first glance at your question had the immediate feeling that the DATALABEL option should be removed but those don't appear on the bottom. Your description could be confused with the XAXIS value labels as well, so my response is a guess as to which "data labels" are intended.

View solution in original post

1 REPLY 1
ballardw
Super User

The XAXISTABLE statement is used to create/display summary values. If I understand your request then remove or comment the statement so it does not execute.

 

Suggestion: when posting questions about graphing procedures it is a good idea to post a copy of the generated image and then you tell us about elements that need to change by referencing the picture. "Data labels" at first glance at your question had the immediate feeling that the DATALABEL option should be removed but those don't appear on the bottom. Your description could be confused with the XAXIS value labels as well, so my response is a guess as to which "data labels" are intended.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 752 views
  • 2 likes
  • 2 in conversation