Previous Page | Next Page

The GKPI Procedure

Example 6: Creating a Traffic Light


Procedure features:

PROC GKPI statement option: MODE=RAISED

TRAFFICLIGHT statement options:

ACTUAL=

BOUNDS=

COLORS=

LABEL=

NOAVALUE

Sample Library Member: GKPTRAFF

[traffic light with red at the top]

This example creates a traffic light that uses primary green, yellow, and red colors. Colors are applied to vertical KPI charts from the bottom up, so to get red at the top, you must specify red last in the list of colors.

 Note about code
goptions reset=all device=javaimg xpixels=120 ypixels=210;
 Note about code
ods listing close;
ods html style=listing;
 Note about code
proc gkpi mode=raised;
   trafficlight actual=598 bounds=(1500 900 600 0) /
   colors=(green yellow red)  noavalue
   label="New Subscriptions";
run;
 Note about code
quit;
ods html close;

Previous Page | Next Page | Top of Page