graph chart

Stacked Horizontal Bar Graph Examples

Servlet Examples

The following series of examples demonstrate the most common implementations for the servlet form of the graph.

All of the servlet examples are designed to run on the local machine and require that Servletrunner ( part of the JSDK environment ) has already been installed. If you haven't already done so then you should implement the JSDK environment first, see http://java.sun.com/products/servlet/

(The graph servlet will of course work with all servlet engines. If you wish to view the examples with another servlet engine then you will need to adjust the example pages to point to your servlet engine ).

Once you have installed the JSDK environment please copy all the files in the ./Examples/servlets/ directory to the JSDK servlet directory ( usually c:\JSDK2.0\examples\ ). Now start the ServletRunner and then click on the examples to the right.

Servlet Example 1
In this example the servlet will acquire both the configuration and graph data from text files.

Servlet Example 2
The servlet is setup here to read the configuration data from a text file and the graph data from a server side process, in this case a Java Servlet.

Servlet Example 3
Here the servlet will acquire both the configuration and graph data from server side processes. ( Java servlets ).

Configuring the Servlet for Database Connectivity
There are various methods by which the graphing servlet can be set to acquire data from databases including:-

Direct Database Binding
Database Script Interface

For a full dicussion on the varius methods and example scripts please see the Tutorial section - click here.

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

Getting Started

Documentation

Examples

Tutorials

Purchase

Bar Graph Home

 

Graph & Charting

Pie Chart
Line Graph
Vertical Bar Graph
Stacked Bar Graph
Horizontal Bar Graph
more...

 

Advanced Data Grid Control