Maximum Value from a BasicTimeSeries

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

Maximum Value from a BasicTimeSeries

Post by reji » Thu Sep 19, 2002 2:38 am

Hi,

I would like to know, is there any way (any methods) to get the maximum data value for a BasicTimeSeries?

thanks,

reji

David Gilbert

Re: Maximum Value from a BasicTimeSeries

Post by David Gilbert » Thu Sep 19, 2002 8:29 am

On its own, no. But if you wrap it in a TimeSeriesCollection you can use the methods in the DatasetUtilities class to get the maximum and minimum values (but be aware that these methods iterate over the entire series).

I think it would be useful to get the BasicTimeSeries class to track the maximum/minimum values as data is added/removed, and provide methods to return these. I'll put it on the to-do list...

Regards,

DG.

Locked