Sample 41421: Place multiple PROC GKPI graphs on the same HTML page using the HTMLPANEL tagset
This sample program demonstrates how to place multiple key performance indicator graphs on the same HTML page by using PROC GKPI with the HTMLPANEL tagset. The sample code places six GKPI graphs on the same Web page (two across and three down).
You must use SAS® 9.2 when running the sample code since PROC GKPI is new beginning with SAS 9.2. The sample code is designed to run on a Windows operating system and by default, all of the output that the code produces is written to the TEMP folder on your C: drive. If you are running SAS on an operating system other than Windows or if you want to write the output to a location other than C:\TEMP, modify the directory specified on the FILENAME statement for ODSOUT.
Click on the Full Code tab above to view the sample code.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The sample code below places multiple PROC GKPI graphs on the same Web page using the HTMLPANEL tagset. The code places six graphs on the same page (two down and three across) with a common title.
%let panelcolumns = 2;
%let panelborder = 1;
%let embedded_titles = no;
goptions reset=all device=javaimg xpixels=250 ypixels=250;
filename odsout 'c:\temp';
title1 'Using PROC GKPI with the HTMLPANEL Tagset';
ods listing close;
ods tagsets.htmlpanel
path = odsout
body = "paneltest.html" (title="HTMLPANEL Test")
nogtitle
nogfootnote;
ods tagsets.htmlpanel event=panel(start);
proc gkpi mode=raised;
speedometer actual=4000 bounds=(0 2000 4000 10000) / target=2000
lfont=(f="Albany AMT" height=.5cm)
format="comma8.0";
run;
quit;
proc gkpi mode=raised;
speedometer actual=-.05 bounds=(-.1 -.05 0 .05 .1) / target = .05
lfont=(f="Albany AMT" height=.5cm)
format="percent5.1";
run;
quit;
proc gkpi mode=raised;
speedometer actual=.15
bounds=(-.20 -.15 -.1 -.05 0 .05 .1 .15 .2) / target = .05
lfont=(f="Albany AMT" height=.5cm)
format="percent5.1";
run;
quit;
proc gkpi mode=raised;
speedometer actual=2500 bounds=(0 2000 4000 10000) / target=4000
lfont=(f="Albany AMT" height=.5cm)
format="comma8.0";
run;
quit;
proc gkpi mode=raised;
speedometer actual=0 bounds=(-.1 -.05 0 .05 .1) / target = .05
lfont=(f="Albany AMT" height=.5cm)
format="percent5.1";
run;
quit;
proc gkpi mode=raised;
speedometer actual=-.1
bounds=(-.20 -.15 -.1 -.05 0 .05 .1 .15 .2) / target = .05
lfont=(f="Albany AMT" height=.5cm)
format="percent5.1";
run;
quit;
ods tagsets.htmlpanel event=panel(finish);
ods _all_ close;
ods listing;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample illustrates how to place multiple PROC GKPI outputs on the same HTML page using the HTMLPANEL tagset.
Date Modified: | 2012-02-09 13:06:55 |
Date Created: | 2010-10-26 17:24:34 |
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Windows Vista for x64 | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 TS1M0 | |