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
SAS Super FREQ
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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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