Using the Line Graph with JavaScript
In the applet form of the graph, any data item can be linked to a javascript function within the current page via the url and target elements.
To instruct the graph applet to execute a javascript function ( rather than url ) upon a mouse click the target element of the data item must be set to "javascript". The function to be executed should then be entered in the url element of the data item.
In addition it is vital that "mayscript" is present in the applet tag e.g,
<applet code="LineGraphApplet.class" archive="LineGraph.jar" width="500" height="420" mayscript>
For an example of the graph applet executing a javascript function please click here.