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

In SAS 9.2

Proc gchart has the noframe feature that removes the box from around the graphs.

How can I use this same feature with a layout like proc template statgraph

Example code is


proc template; 

   define statgraph ColorCollegeByIndex;

     dynamic TITLE1 TITLE2;

  begingraph;

   entrytitle TITLE1;

   entrytitle TITLE2;

       layout overlay / xaxisopts =(label = ' ') yaxisopts =(label = ' ');

         seriesplot x=FOUR_DIGIT_YEAR y=students_enrolled / group=COLLEGE_DESC  name='a' index=index display=all;

       endlayout;

     endgraph;

   end;

  run;

ods graphics on / imagemap height=3in width=3in border=off;

%Stpbegin;

     proc sgrender data=enrollmentTotalOnCampus template=TotalGraph;

     run;

%Stpend;

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

On the LAYOUT OVERLAY statement, put this option after the slash:

walldisplay=(fill)

Hope this helps!

Dan

View solution in original post

4 REPLIES 4
ballardw
Super User

Try

ODS Graphics on / border=off;

before rendering the graph.

DavidPhillips2
Rhodochrosite | Level 12

I included that line.

Jay54
Meteorite | Level 14

Would be easier to help if you can attach a working program with sample data.  Please see the "Tip:  How to ask..."

Also - The template name used in the SGRENDER does not match the name in proc TEMPLATE.

DanH_sas
SAS Super FREQ

On the LAYOUT OVERLAY statement, put this option after the slash:

walldisplay=(fill)

Hope this helps!

Dan

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
  • 4 replies
  • 2053 views
  • 1 like
  • 4 in conversation