EXAMPLE 19  Drill-down Link to an HTML Anchor

Purpose: Create maps (or graphs) with HTML drill-down functionality, and have those drill-down links go to HTML anchors on the same page--all done in a data-driven manner.

One of the most useful features of SAS/GRAPH is the ability to create output containing HTML hotspots with data-driven drill-down functionality. When you view the output in a Web browser, you can click on these hotspots (corresponding to bars, pie slices, plot markers, or as in this case, map areas) and drill down to more detailed information.

It goes without saying that the easiest drill-down functionality to implement are links to pages that someone else maintains because you do not have to create the pages you drill down to. ...

Get SAS/GRAPH: Beyond the Basics 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.