Chapter Contents

Previous

Next
HTML Variable

HTML Variable



Defines a link in the HTML file created for a drill-down graph. This link is associated with an area of the graph and contains valid HTML syntax that can point to a report or another graph that you want to display when the user drills down on the area.

Type: character
Length: up to 1024
Default: none


Syntax
Functions
Details

Syntax

HTML='link-string';

link-string
specifies the text that defines the link for drill-down. For more information about drill-down graphs and how to specify the link string, see About Drill-down Graphs


Functions

You can use the HTML variable with these functions:
BAR
LABEL
PIE
POLY
SYMBOL


Details

Use a LENGTH statement to set the length of the HTML variable to the longest string you need for the link string. Be sure to set the HTML value to a null if you continue writing observations to the annotate data set after you are done assigning links. For example, the following code defines link information for two squares, but then sets the HTML variable to null when drawing a frame; otherwise the backgound area within the frame will use the link information from the last defined HTML value and become a hot zone in the graph.

data squares;
     length function style color $ 8
            html text $ 15;
     xsys='3'; ysys='3';

        /* draw a green square */
     color='green';
     function='move'; x=10; y=65; output;
     function='bar';  x=30; y=95; style='solid';
        html='href=green.gif'; output;

        /* draw a red square */
     color='red';
     function='move'; x=60; y=65; output;
     function='bar';  x=80; y=95;
        html='href=red.gif'; output;

        /* draw a blue frame */
     function='frame'; color='blue'; style='empty';
        /* set null link for background area in frame */
        html=''; output;
run;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.