Applet Example 8
Dynamic Methods demo
This example
demonstrates how other page components can dynamically interact
with the graphing applet to change chart properties and data
values.
Click on the buttons to see the various effects.
For the full range of Dynamic methods available please
see the
Documentation
- Dynamic Methods section.
and here
is the HTML code for the applet,
(note
that the applet has been named, name='GRAPH' and
that 'mayscript' has been added to the APPLET tag
),
<applet name="GRAPH"
code="SVbarchartApplet.class" archive="SVbarchart.jar"
width="400" height="440" mayscript>
<!-- Start
Up Parameters -->
<param name="LOADINGMESSAGE" value="Creating
Chart - Please Wait.">
<param name="STEXTCOLOR" value="0,0,100">
<param name="STARTUPCOLOR" value="255,255,255">
<param name="chartproperties"
value="barprops.txt">
<param name="chartdata" value="bardata.txt">
</applet>
The
configuration parameters are taken from the text file barprops.txt
( click here to view )
and the graph data is read from the text file bardata.txt
( click here to view )
Note:
If you are using the evaluation version then in the applet
a pop-up window will appear upon the startup and an evaluation
message will be incorporated by the servlet. Both these
features have been removed from the licensed version. Licensing
information can be found at http://www.jpowered.com/graph_chart/index.htm
<< back to Examples Index
<< back to Getting
Started
|