FOCUS AREAS

Data Visualization

SUGI 27 SAS/GRAPH Code Samples

This page shows some of the samples that were used in demonstrations at the SUGI 27 conference in 2002.

   See Also: PDF versions of the papers that were delivered at SUGI 27.

Note. In the table below, the links to the ouput go to pages that show only image representations of the graphs that are generated by the sample code; the pages do not actually reference the client controls. However, if you paste a sample's code into a Version 9 SAS session and submit it, the output will reference running controls when the device driver has been set to ActiveX or Java.


Sample Description
Annotations with Client Graphs This sample shows how to produce annotations on a map using the ActiveX or Java device drivers.

View an Image Representation of the Output
View the Code

Areabar Graph This sample shows how to use the new GAREABAR procedure to generate an areabar graph using the ActiveX device driver.

View an Image Representation of the Output
View the Code

Bar Chart with Plot Overlay This sample shows how to use the GBARLINE procedure to generate a bar chart with a plot overlay. (This example is different from the original SUGI27 example. It uses different data so that the data can be included inline and the code run as is, assuming you provide a valid path-to-your-web-server.)

View an Image Representation of the Output
View the Code

Bar Charts in Java This sample shows several bar charts using the Java device driver.

View an Image Representation of the Output
View the Code

Constellation Chart Applet These samples show how to generate a Constellation Chart Applet.

View an Image Representation of Output 1
View the Code

View an Image Representation of Output 2
View the Code

Pie Chart with Detail Slices This sample shows how to generate a pie chart with detail slices using the ActiveX, Java, or GIF device drivers.

View an Image Representation of the Output
View the Code

Plots in Java This sample shows several plots using the Java device driver.

View an Image Representation of the Output
View the Code

Radar Chart This sample shows how to generate a radar chart.

View an Image Representation of the Output
View the Code

Radar Chart in ActiveX This sample shows that the ActiveX device driver supports radar charts.

View an Image Representation of the Output
View the Code

PDF or RTF Output
This sample shows how to generate PDF or RTF output for graphs. The sample combines a table and a graph.

View the PDF Version of the Output
View the Code

New Device Drivers This sample demonstrates the new device drivers, ACTXIMG and JAVAIMG. which are used with ODS.

With the ACTXIMG driver, the SAS session launches the SAS/GRAPH Control for ActiveX in the background, without displaying it. The Graph control then renders the graph and saves it as a PNG image. ODS automatically creates an HTML file that references the PNG image so that it can be displayed in a Web browser.

The JAVAIMG driver works the same way, but it uses one of the SAS/GRAPH Java applets rather than the Control for ActiveX.

View an Image Representation of the Output (only partial output shown)
View the Code