Chapter Contents |
Previous |
Next |
The GPLOT Procedure |
Procedure features: |
| |||||||
ODS features: |
| |||||||
Other features: |
| |||||||
Sample library member: | GR21N10 |
This example shows how to create a plot with simple drill-down functionality for the Web. If you display the plot in a Web browser, you can select any plot point or legend symbol to display a report on monthly temperatures for the selected city.
The example explains how to use the ODS HTML statement and the HTML procedure options to create the drill-down. It shows how to
For more information on drill-down graphs, see About Drill-down Graphs.
This program modifies the code from sample GR21N08, which shows how to generate separate plots for the formatted values of a classification variable. In this example, the code implements drill-down capability for the plot, enabling you to select any plot point or legend symbol to drill down to a report on the yearly temperatures for the corresponding city. Browser View of Drill-down Plot shows the drill-down plot as it is viewed in a Browser.
Browser View of Drill-down Plot
Browser View of Report on Raleigh Temperatures shows the report that appears when you select any plot point or legend symbol that corresponds to the data for Raleigh.
Browser View of Report on Raleigh Temperatures
filename odsout 'path-to-Web-server-space'; |
ods listing close; |
goptions reset=global gunit=pct colors=(black red blue green) ftext=swiss ftitle=swissb htitle=6 htext=3 device=gif transparency noborder; |
title1 'Average Monthly Temperature'; footnote1 j=l h=3 ' Click a data point or legend symbol' j=r 'GR21N10 '; symbol1 interpol=join value=dot height=3; |
ods html path=odsout body='city_plots.html' nogtitle; |
proc gplot data=newtemp; plot fahrenheit*month=city / hminor=0 html=citydrill html_legend=citydrill; run; quit; |
ods html path=odsout body='city_reports.html'; |
proc sort data=newtemp; by city month; run; |
goptions reset=footnote; option nobyline; |
ods html close; ods listing; |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.