Creating HTML Output: Graphs as ActiveX

Another option for creating interactive graphs is to use the ACTIVEX device driver. This device driver uses Microsoft's ActiveX Control technology to create an interactive graph that can be viewed on a Web site or inserted into a Microsoft Office document. As with the previous example, if you have the correct ActiveX controls installed on your system, you will be able to view the graph created from this code:

ODS HTML PATH='c:\temp' (URL=NONE)
         BODY='ActiveXBar.htm' NOGTITLE STYLE=ANALYSIS;
GOPTIONS DEVICE=ACTIVEX;
title 'Candy Bar Chart';
title2 'Annual Sales by Type of Chocolate and Filling';
proc gchart data=CandyBars;
   vbar3d Filling / sumvar=Sales
                    group=Chocolate;
run; quit;
ODS HTML CLOSE;

The resulting ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.