Data visualization with SAS programming

No Frame Feature with Statgraph

Accepted Solution Solved
Reply
Super Contributor
Posts: 494
Accepted Solution

No Frame Feature with Statgraph

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;


Accepted Solutions
Solution
‎01-28-2015 02:59 PM
SAS Super FREQ
Posts: 925

Re: No Frame Feature with Statgraph

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

walldisplay=(fill)

Hope this helps!

Dan

View solution in original post


All Replies
Super User
Posts: 11,134

Re: No Frame Feature with Statgraph

Try

ODS Graphics on / border=off;

before rendering the graph.

Super Contributor
Posts: 494

Re: No Frame Feature with Statgraph

I included that line.

SAS Super FREQ
Posts: 1,141

Re: No Frame Feature with Statgraph

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.

Solution
‎01-28-2015 02:59 PM
SAS Super FREQ
Posts: 925

Re: No Frame Feature with Statgraph

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

walldisplay=(fill)

Hope this helps!

Dan

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 430 views
  • 0 likes
  • 4 in conversation