BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am having a problem getting my graphs to fit on one page. The following code is an example of something I am trying to do with my data. I plot several charts on one page but SAS rather than shrink them to fit overlaps.

How can I shrink them whilst keeping the graph exactly as it is. I know I could set device=jpeg but I want to keep the ineractivity.

Thanks

options papersize=A4 orientation=landscape;

ods rtf file ='/user01/ucollrec/Alan/rtfexample.rtf' columns=3 keepn startpage=no;

Axis1
STYLE=1
WIDTH=1
MINOR=NONE;
Axis2
STYLE=1
WIDTH=1;
Axis3;
Axis3
STYLE=1
WIDTH=1;
TITLE;
TITLE1 "Bar Chart";
FOOTNOTE;
FOOTNOTE1;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;

PROC GCHART DATA=SAShelp.air;
VBAR3D DATE
/ SUMVAR=AIR
SHAPE=BLOCK
FRAME TYPE=SUM
COUTLINE=BLACK
RAXIS=AXIS1
MAXIS=AXIS2
GAXIS=AXIS3
GAXIS=AXIS3;
RUN;
1 REPLY 1
deleted_user
Not applicable
In the SAS/Graph documentation, look at the syntax for the procedure to save the results to a graphics catalogue.

Then look at the documentation for the Template procedure which will let you design a layout for your results page.

Finally, look at the documentation for the GReplay procedure which will let you redraw your graphs onto the template.


This solution is very specific to the SAS/Graph product and is outside the scope of this discussion group. If you continue to have trouble, search for SAS papers on the template and GReplay procedures, or call SAS technical support.


Kind regards

David

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 833 views
  • 0 likes
  • 1 in conversation