BookmarkSubscribeRSS Feed
yonib
SAS Employee
Hi i took this simple example to explain my problem:
In axis1 i have varaible sex and in axis2 i have varaible weight
i want to get my output without the labels values ' f ' and 'm'
belong to varaible sex - i want it to be empy ....
what could be the way to make it work?
data a;
set SASHELP.CLASS;
run;

Axis1
label=none
STYLE=1
WIDTH=1
MINOR=NONE


;
Axis2
STYLE=1
WIDTH=1


;
PROC GCHART DATA=a
;
VBAR
Sex
/
SUMVAR=Weight
CLIPREF
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
;

RUN;
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi,
The horizonal axis or midpoint axis is controlled by the AXIS2 statement that is shown in your code. I suggest that you investigate the use of VALUE=NONE and LABEL=NONE in the SAS/GRAPH documentation on the AXIS statement, to see which gives you the desired results:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/axischap.htm

Also investigate the use of the RAXIS option to configure the RESPONSE or Y axis (such as for WEIGHT) and the MAXIS option to configure the horizontal or MIDPOINT or X axis (such as for SEX).
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gchart-bar.htm

cynthia
yonib
SAS Employee
Hi Cynthia ,
Got it ! , thanks for your help

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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