Data visualization with SAS programming

Output without values on axis1

Reply
SAS Employee
Posts: 105

Output without values on axis1

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;
SAS Super FREQ
Posts: 8,643

Re: Output without values on axis1

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
SAS Employee
Posts: 105

Re: Output without values on axis1

Hi Cynthia ,
Got it ! , thanks for your help
Post a Question
Discussion Stats
  • 2 replies
  • 106 views
  • 0 likes
  • 2 in conversation