Quick Start Tutorials - Supplying the Data via Plain Text Files
This method is ideal where the chart data is fairly static. With this method chart data may be updated without editing the HTML
This method may be applied to both Applet & Servlet forms of the graph.
Method Outline - This method involves incorporating the graphing applet (or Servlet) into your web page and supplying
the data via a separate plain text file. Every visitor will see an identical graph whenever they visit the page.
This method involves the following 4 steps,
Step 1 - Add the
applet html code to your web page
Add the following HTML code to your web page,
Adjusting the "width" and "height" element
of this applet tag to specify the size (in pixels) of the desired graph display.
Step 2 - Set up the
The applet will read all the configuration parameters from a specified file. To use this option add the following
PARAM tag to your html code between the <applet> and </applet> tags,
As you will see from the example file each piece of data is specified
on a name, value basis. The first element of each line represents the data name (specifying the series and data order)
and then the value. (Also note that comments may be added to this file by placing "<!--" at the beginning
of a line.).
Simply create a similar file, adding your data values. For a
full explanation of this file please see the "Retrieving Data from Files" under the "Data and Configuration"
section ( or click here).
Step 4 - Upload the
jar file to your web server.
The final step is to place the SVbarchart.jar
file in the same directory as your web page.