PROC GCHART - is there a way to put multiple graphs on a single HTML report page

Reply
Frequent Contributor
Posts: 134

PROC GCHART - is there a way to put multiple graphs on a single HTML report page

Hi,

I am using PROC GCHART to generate over 20 graphs (using group by function) ni HTML... my issue is that graphs are printing individually (one per page)... is there a way to put 2 or more graphs on a single page.

Here is the code that I am using

--------------------------------------------------------------------------------------------------------------------

ods listing close;

ods HTML file="\\core.com\Metrics\Site Details.HTML";

%_sas_pushchartsize(1000,200);

  PATTERN1 COLOR=CX00CCFF;

  PATTERN2 COLOR=CX333300;

  PATTERN3 COLOR = _STYLE_;

  PATTERN4 COLOR = _STYLE_;

  PATTERN5 COLOR = _STYLE_;

  PATTERN6 COLOR = _STYLE_;

  PATTERN7 COLOR = _STYLE_;

  PATTERN8 COLOR = _STYLE_;

  PATTERN9 COLOR = _STYLE_;

  PATTERN10 COLOR = _STYLE_;

  PATTERN11 COLOR = _STYLE_;

  PATTERN12 COLOR = _STYLE_;

Axis1

  MINOR=NONE

  LABEL=NONE

;

Axis2

  LABEL=NONE

;

Axis3

  LABEL=NONE

;

TITLE;

FOOTNOTE;

title2 '#byval(SITE)';

PROC GCHART DATA=WORK.SORTTempTableSorted1

;

  VBAR GROUP /discrete

  SUMVAR=VOL OUTSIDE=SUM

  GROUP=C_GROUP

  CLIPREF

  FRAME

  TYPE=SUM

  NOLEGEND

  COUTLINE=YELLOW

  RAXIS=AXIS1

  MAXIS=AXIS2

  GAXIS=AXIS3

  PATTERNID=MIDPOINT

;

  BY SITE;

format VOL comma10.0;

RUN; QUIT;

ods html close;

Trusted Advisor
Posts: 2,115

Re: PROC GCHART - is there a way to put multiple graphs on a single HTML report page

Consider using GREPLAY to organize the graphs for presentation to HTML.

Note that the SG plot procedures that are part of ODS Graphics may provide more control for what you seem to be doing.  SGPANEL is the tool there for bundling graphs for presentation.  Sanjay's blog and book are quite helpful with ODS Graphics; see Graphically Speaking - Data Visualization with a focus on SAS ODS Graphics

Doc Muhlbaier

Duke

SAS Super FREQ
Posts: 8,861

Re: PROC GCHART - is there a way to put multiple graphs on a single HTML report page

And, if you are unable to follow Doc's suggestion and use PROC SGPANEL, then you can use the HTMLPANEL destination (as an alternative to GREPLAY) in order to have multiple graphs appear side-by-side on an HTML page.

http://support.sas.com/kb/38/066.html

cynthia

Ask a Question
Discussion stats
  • 2 replies
  • 186 views
  • 0 likes
  • 3 in conversation