BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidPhillips2
Rhodochrosite | Level 12

Is there a way to remove or alter the text displayed on the axis of sgpanel in SAS 9.2?

On other graph types I use

axis1 label=none;

axis2 label=none;                                                                                  

legend1 label=none;

legend=legend1                                                                                                                                                                                                                      

maxis=axis1

raxis=axis2



In this case I would like the response variable to Display Students Enrolled (Sum) or nothing and the academic period to not be displayed. 

proc sgpanel data=enrollment;

     panelby &reportTy1 &reportTy2/ layout=lattice uniscale=column  novarname columns=3;

     vbar academic_period_desc / response=students_enrolled datalabel  nostatlabel legendlabel=' ';          

run;


1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

Getting rid of the NOSTATLABEL might give you the response axis label you want; but, just in case, I'll show you how to set the label explicitly. See if this works for you:

proc sgpanel data=enrollment;

     rowaxis label="Students Enrolled (Sum)";

     colaxis display=(nolabel);

     panelby &reportTy1 &reportTy2/ layout=lattice uniscale=column  novarname columns=3;

     vbar academic_period_desc / response=students_enrolled datalabel legendlabel=' ';         

run;

View solution in original post

2 REPLIES 2
DanH_sas
SAS Super FREQ

Getting rid of the NOSTATLABEL might give you the response axis label you want; but, just in case, I'll show you how to set the label explicitly. See if this works for you:

proc sgpanel data=enrollment;

     rowaxis label="Students Enrolled (Sum)";

     colaxis display=(nolabel);

     panelby &reportTy1 &reportTy2/ layout=lattice uniscale=column  novarname columns=3;

     vbar academic_period_desc / response=students_enrolled datalabel legendlabel=' ';         

run;

DavidPhillips2
Rhodochrosite | Level 12

Dan,

It worked perfectly. Thanks for your advice.

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