Data visualization with SAS programming

Output Five Line Graphs in HTML

Reply
Frequent Contributor
Posts: 78

Output Five Line Graphs in HTML

Hey Experts,

I am sure this is simple to do. I have five line graphs that I would like to output in one html with Left frame stating the name of graphs and right frame containing all the graphs.

I am using SAS 9.1 and it seems that my browser's unable to view the html output.

Below is the coding of my graphs...

PROC GPLOT DATA = Gio_Sales;
TITLE "(GIO) - Inforce Risks";
PLOT tranInforce * Month /
VAXIS=AXIS1
HAXIS=AXIS2;
Run;

Proc Gplot Data = Gio_Profit;
Title "Gio Inforce Risk - Motorcycle Class";
Plot tranInforce * Month = GioBike_Grp /
VAXIS=AXIS1
HAXIS=AXIS2;
Run;

Proc Gplot Data = Gio_Profit;
Title "Gio Inforce Risk - Type of Covers";
Plot tranInforce * Month = GioCover_Type /
VAXIS=AXIS1
HAXIS=AXIS2;
Run;

Proc Gplot Data = Gio_Profit;
Title "Gio Inforce Risk - Age Band";
Plot tranInforce * Month = GIO_Ageband /
VAXIS=AXIS1
HAXIS=AXIS2;
Run;

Proc Gplot Data = Gio_Profit;
Title "Gio Inforce Risk - Type of Channels";
Plot tranInforce * Month = GioChannel_Grp /
VAXIS=AXIS1
HAXIS=AXIS2;
Run;

Proc Gplot Data = Gio_Profit;
Title "Gio Inforce Risk - Make of Motorbikes";
Plot tranInforce * Month = GioBike_Make /
VAXIS=AXIS1
HAXIS=AXIS2;
Run;


Hoping someone can help me out. Cheers.
Super Contributor
Super Contributor
Posts: 3,174

Re: Output Five Line Graphs in HTML

You must have some other SAS commands to control the destination of our generate graphics output, right? You will get better response if you share the SAS-generated log output from your entire program, not just the PROC statements. Again, SAS log output, not just the SAS program statements.

Scott Barry
SBBWorks, Inc.
SAS Super FREQ
Posts: 8,721

Re: Output Five Line Graphs in HTML

Hi:
Look at this example in the documentation. It uses PROC REPORT and PROC GCHART. Your code would not have any PROC REPORT steps. Specifically, in this example, it is the ODS HTML invocation with the CONTENTS= and FRAME= and FILE= options that make an HTML frame navigation set of files with a frame on the left and the display area on the right:
http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gr08ods1-ex.htm

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