Thursday, September 11, 2008

time series chart

1. first create a time series class. In the constructor of this class, create a series object from TimeSeries class. Then add data to the series object.
2. Now create a dataset object from TimeSeriesCollection class and add the series object to the dataset object.
3. Now create a chart object from JFreeChart class and add the dataset to it.
4. Now add the chart to the panel created.

No comments: