The applet is setup here to read both the configuration data and the graph
data from a server side processes, in this case a PHP scripts running on our web server.
and here is the HTML code,
<applet code="AreaGraphApplet.class" archive="AreaGraph.jar" width="460"
height="440">
<!-- Start Up Parameters -->
<PARAM name="LOADINGMESSAGE" value="Area Graph Loading - Please Wait."> <!-- Message to be displayed
on Startup -->
<PARAM name="STEXTCOLOR" value="0,0,100"> <!-- Message Text Color-->
<PARAM name="STARTUPCOLOR" value="255,255,255"> <!-- Applet Background color -->
<!-- Data files -->
<PARAM name="chartproperties" value="http://www.jpowered.com/area_graph/areaprops.php">
<PARAM name="chartdata" value="http://www.jpowered.com/area_graph/areadata.php">
</applet>
The areadata script is a simple PHP script designed to demonstrate
how a server script can be used to return data to either the graphing applet or servlet. In practice this routine would be expanded
to first gather data from any number of data sources. eg. databases, files other server processes.
The areaprops scrip again is just a simple PHP script to demonstrate
the method. Again, in practice this method would be expanded to derive data from a number of data sources.
For a full explanation of and range of values for the above parameters please
see the Documentation - Configuration Options».
« back to Examples Index
« back to Getting Started
|