Dynamic timeseries question

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Sergey

Dynamic timeseries question

Post by Sergey » Mon Jul 22, 2002 7:50 pm

Hi,

I'm using multiple BasicTimeSeries in timeseriescolleciton datasets. Data is added dynamically to the series over some period of time. setFixedAutoRange property works perfect for lines/labels presentaion, although my concern is that the old items (series.getItemCount()) don't seem to be discarded from the series when time range window moves on, consequently taking up more memory I assume.

I didn't seem to find a specific property in the docs where I could set discard flag or something.

Is it available and if not could you please point me out how I should go about this issue?

Thanks!

David Gilbert

Re: Dynamic timeseries question

Post by David Gilbert » Tue Jul 23, 2002 5:42 am

Hi Sergey,

The setFixedAutoRange method is for chart presentation only, it doesn't affect the dataset.

There are methods in the BasicTimeSeries class for deleting items, but you need to call these yourself.

Regards,

DG.

Sergey

Re: Dynamic timeseries question

Post by Sergey » Tue Jul 23, 2002 1:27 pm

Thanks David,
That did it

Locked