- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.