DynamicTimeSeriesCollection Demo ?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Alan O'Leary

DynamicTimeSeriesCollection Demo ?

Post by Alan O'Leary » Fri Feb 28, 2003 12:52 pm

Hello,
Anyone have a simple demo of best use of the DynamicTimeSeriesCollection class ?

Also what would be the best way to do the following :

I currently have a static graph generated from a parsed results file and this works fine and JFreeChart has many features I like...

This results file is actually growing so I would like to generate a dynamic graph. Thats why I would like some example code of the DynamicTimeSeriesCollection.

What would be the best way to approach dynamically plotting the growing results file ?
(it has a very simple format : ms_timestamp, attr_id(multiple), value

Thanks in advance, any help appreciated...

-Alan

David Gilbert

Re: DynamicTimeSeriesCollection Demo ?

Post by David Gilbert » Tue Mar 04, 2003 10:58 am

Hi Alan,

You can just use the ordinary TimeSeries/TimeSeriesCollection classes to create a dynamic chart. Update the time series, and the chart should automatically be repainted.

The DynamicTimeSeriesCollection class has been contributed to the JFreeChart project by Irv Thomae, to improve the performance for larger datasets. I don't have any demo code for this class.

Regards,

Dave Gilbert

Locked