See: Description
Class | Description |
---|---|
First |
Example of a pie chart from the installation notes.
|
TimeSeriesExample |
Shows a parameter varying over time with calls giving
the time and the value of the parameter.
|
TimeSeriesExample2 |
Shows a parameter varying over time.
|
XYChartExample |
Example of generating XY chart.
|
Examples using JFreeChart, an open-source library for plotting graphs of various types.
The web site for this package is located at http://www.jfree.org.
The Javadocs's for the various libraries are at the following locations.
JFreeChart http://www.jfree.org/jfreechart/api/javadoc
JCommon http://www.jfree.org/jcommon/api
There is a demonstration of the various chart types in the
file jfreechart-1.0.10-demo.jar
. This program can
be execued by either of the following methods.
java -jar jfreechart-1.0.10-demo.jar
java -classpath jfreechart-1.0.10-demo.jar demo.SuperDemo
Warning: The programs in the file jfreechart-1.0.10-demo.jar dynamically load the contents of other jar files. That means that the directories must be in the same relative file locations as in the download from the JFree site.
This library uses SWT (Standard Widget Toolkit from Eclipse Foundation) graphics, which are platform dependent. Versions are available for Apple Macintosh and Windows as well as a version that should be platform dependent but is described as being a little slower. If it is used in applets (programs run on the browser in the same way as Flash or ShockWave), it may be necessary to have three versions on the web site, although this would be transparent to users.
If used in servlets (programs that run on the server), the swt.jar file for the
appropriate platform should be placed in the lib
directory, which
is used for all applications on the server.
http://sourceforge.net/projects/jfreechart/ Sourceforge site for JFreeChart
Articles on using JFreeChart can be found at the following locations.
http://www.screaming-penguin.com/node/4005 JFreeChart tutorial
http://www.java2s.com/Code/Java/Chart/JFreeChartTimeSeriesDemo10withperminutedata.htm
http://www.java2s.com/Code/Java/Chart/CatalogChart.htm Contains a list of many charts, many of which are in JFreeChart.