Introduction

JetChart can be used with servlets and JSP pages, generating charts upon HTTP requests and encoding charts into one of the available image formats.

This tutorial explains how to embed JetChart into a web application, generating static chart images and outputting them back to a remote client.

The examples given through the tutorial were tested with the Tomcat servlet engine, thus the following information refers to the location where the required jar files have to be moved to within the Tomcat directory structure.

The required jar files are listed below. Copy them into the WEB-INF/lib folder of the web application that will generate charts.

  1. GraphChart.jar - This jar file contains JetChart core classes used to plot any chart other than a pie chart.

  2. PieChart.jar - This jar file contains JetChart core classes used to plot a pie chart.

  3. Encoders.jar - This jar file contains the ChartEncoder class and a GIF, JPEG, PNG and SVG encoders.
The required files can be found at the JetChart/lib/AWT directory after decompression of the JetChart.zip file.

If additional support is needed, please send inquiries to our
support staff.