Bar Graph
The client installation consists of the following class file:
- bargraph.class (the applet the client loads with his/her browser)
To set up the web page for the client, simply insert the following HTML code on the webpage in which you would like the applet to appear. You may also adjust the width and height of the applet to suit your needs.
Note #1: The wider, the more columns you will be able to fit)
- author
-
Required parameter for author credits.
- title
-
The title that appears centered at the top of the graph.
- data
-
The numeric data values for each column separated by commas.
- columnNames
-
The names of the respective columns separated by commas.
- columnColors
-
The color of the columns separated by comma, if the color of a bar is not provided (i.e. a space between columns), blue is used.
1:<applet code="bargraph.class" width="470" height="300">
2:<param name="author" value="http://www.mike95.com">
3:<param name="title" value="Browser Statistics">
4:<param name="barValues" value="4,8,41,8,32,50,42">
5:<param name="barLabels" value="AOL,IE3,IE4,NS3,NS4,All IE,ALL NS">
6:<param name="barColors" value="*,*,*,*,*,FF0000,FF0000">
7:</applet>
Note: If you choose to put the class file on another directory on your web server, you must use the codebase attribute of the applet tag or specify the relative location on the code attribute.
|