Moving Average in a Line Chart

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

Moving Average in a Line Chart

Post by Madhu Mathew » Wed Nov 28, 2001 11:50 pm

Hi,

I am very new to JFreeChart APIs. I did see that there was a moving average graph shown as a sample. This was for a time series graph. Is this moving average functionality available for a line chart too. If so , can any one point to some sample code as to how to implement it.

Any help is greatly appreciated.

Thanks
Madhu

David Gilbert

RE: Moving Average in a Line Chart

Post by David Gilbert » Thu Nov 29, 2001 9:29 am

Hi Madhu,

The line chart is based on the CategoryDataset, so really it is just an alternative presentation to the bar charts (same data). I'm not sure how you would calculate a moving average on this type of data...

Regards,

DG.

Locked