This example demonstrates how to implement the applet and servlet together
so that all the interactive features of the applet are presented to the user and also giving the user the option of printing the
page containing the graph.
On this page we implement the servlet ( which acquires both the configuration
and graph data from data files). This page is almost identical and contains the servlet implementation which is universally printable.
The configuration data is acquired from the text file areaprops.txt
(click here to view)
and the graph data is acquired from the text file areadata.txt (click here to view).
and here is the HTML code,
data=http://www.jpowered.com/graph_chart_collection/AreaGraph/Examples/areadata.txt" width="460" height="440">
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