Previous Page | Next Page

Generating Static Graphics

What is a Static Graphic?

A static graphic is a graphic that is permanently fixed after it is displayed. You can view a static graphic but you cannot manipulate it as you view it in a browser. Examples of static graphics include GIF and PNG images. To generate a static graphic, in your SAS program, run a SAS graphics procedure and specify with the DEVICE= graphics option on one of the following devices:

PNG SVG ACTXIMG
GIF JPEG JAVAIMG

Variants of some of the devices are also available for special purposes. The GIF device by default creates images with dimensions of 800 x 600 pixels. To enable you to create GIF images with different default dimensions, the following GIF device variants are provided:

GIF160

160 x 120

GIF260

260 x 195

GIF373

373 x 280

GIF570

570 x 430

GIF733

733 x 550

However, we recommend that you use the XPIXELS= and YPIXELS= graphics options with the GIF device to change the default size of your GIF graph to whatever size you need. See Using the XPIXELS= and YPIXELS= Graphics Options to Set the Size of Your Graph.

You can also use the following additional variants:

PNG300

produces PNG images with 300 DPI resolution

PNGT

provides support for transparency in PNG images

SVGZ

produces compressed SVG images

SVGT

provides support for transparency in SVG images

SVGVIEW

provides navigational control buttons for multipage SVG images

Zdevice

devices provided for compatibility with previous releases of the SAS/GRAPH software

See Using Graphics Devices for more information on these devices.

When you send your graph output to the ODS HTML destination, you can add data tips and drill-down links to your static graphic. See Enhancing Web Presentations with Chart Descriptions, Data Tips, and Drill-Down Functionality.

Previous Page | Next Page | Top of Page