Creating Drill-Down Graphs in HTML |
Creating the Secondary Charts and
Tables |
Finally, you need to add an ODS HTML statement to each
PROC TABULATE step to assign an anchor to the table for that quarter.
Remember that the bars on each secondary chart now link to the anchors salesq1, salesq2, salesq3, and salesq4. When a user clicks on one of the bars, the link goes to that anchor within the HTML page. So, you need to insert an anchor wherever PROC TABULATE writes the sales details. To do this, use the ANCHOR= option in the ODS HTML statement for each PROC TABULATE step. |
General form, ANCHOR= option:
where anchor-name specifies the name of the HREF anchor to add to the current HTML page. |
For example, the ODS HTML statement below specifies the anchor salesq1 for the first quarter PROC TABULATE table. |
ods html anchor='salesq1'; title '1st Quarter 1995 Sales by Country'; proc tabulate data=work.saletrnd format=dollar10.0; class country product; var actual; table (country all)*(product all), sum*actual; where year=1995 and quarter=1; run; |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.