public class XYChartExample extends Object
This example was taken from http://www.screaming-penguin.com/node/4005. I added some additional comments and completed the code sample. (Primarily adding package and import statements.)
When the program is run from within Eclipse, there doesn't seem to be any way to shut it down withut shutting down eclipse. When it is started from the command line, it is resizable and has its own menu bar which allows it to be closed. The problem may be a combination of Swing and SWT graphics.
ChartFactory
,
ChartFrame
,
ChartUtilities
,
JFreeChart
,
PlotOrientation
,
XYSeries
,
XYSeriesCollection
Constructor and Description |
---|
XYChartExample() |
public XYChartExample()