Enhancing Web Presentations Generated with the GIF, JPEG, or PNG Device Driver


This section shows you how to enhance the appearance and functionality of Web presentations that are generated with a GIF, JPEG, or PNG device driver. For information on the default configurations of these Web presentations, see Developing Web Presentations with the GIF, JPEG, and PNG Device Drivers on page 443.

The available enhancements are as follows :

  • Add drill-down links to graph elements or legend elements or both. See Generating Drill-Down Web Presentations with the GIF, JPEG, or PNG Device Driver on page 447.

  • Format your HTML output file using ODS. See Overview of ODS Enhancements for Web Output on page 487.

  • Add drill-down links to graphical elements specified in an Annotate data set. See Generating Web Links with the Annotate Facility on page 500.

Generating Drill-Down Web Presentations with the GIF, JPEG, or PNG Device Driver

Using the GIF, JPEG, or PNG device driver, you can generate a complete drill-down Web presentation with selectable elements in the graph or legend. To enable the drill-down functionality, the graphics procedure must support the HTML= or the HTML_LEGEND= option.

Follow these steps to generate a drill-down graph with the GIF, JPEG, or PNG device driver.

  1. To save resources, close the ODS listing destination.

     ods listing close; 
  2. Set graphics options.

     goptions reset=all device=gif; 
  3. Initialize one or two link variables and add values to those variables. The link variables provide the drill-down URLs that will appear in the image map of the HTML output file, as described in GIF Output with Hotspot Links on page 452.

  4. Generate an HTML output file using ODS.

     ods html file="mygif1.htm"      gpath="C:\mypath\web" 
  5. Generate the graph as an image output file. In the statement that generates the graph (such as VBAR3D), assign the name of a link variable as the values of the HTML= option or the HTML_LEGEND= option or both. (See Links in GIF, JPEG, and PNG Files on page 571.)

  6. If necesary, create the HTML pages to be linked to.

  7. Close the HTML output file and open the ODS listing destination.

     ods html close;  ods listing; 

Run the program and display the HTML output file in the SAS Results window or in a Web browser. Selecting an element in the graph points the Web browser to the associated drill-down URL.




SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net