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: no limit
Default: none



Variable Values

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 Adding Links and Enhancements with the URL=, HTML=, and HTML_LEGEND= Options. For using the HTML variable for data tips, see Adding Custom Data Tips with the HTML= Option.


Setting the Length of the HTML Variable

Use a LENGTH statement to set the length of the HTML variable to the longest string that 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 background 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 */
     function="move"; x=10; y=65; output;
     function="bar";  x=30; y=95; style="solid";
        html="href=green.gif"; output;
        /* draw a red square */
     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;


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