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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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