Time Series Chart with Moving average

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

Time Series Chart with Moving average

Post by Stefan Lindroos » Wed Aug 21, 2002 8:04 am

Hi all,

I have looked at the demo and I can get a Moving Average drawn into my Time Series Chart, but I would like to have several Moving Averages with different periods drawn in the same chart. Can anybody provide me with some hints on how to do that?

Thanks,

Stefan

David Gilbert

Re: Time Series Chart with Moving average

Post by David Gilbert » Thu Aug 22, 2002 11:25 am

Hi Stefan,

The current moving average code is problematic in that it returns a dataset with both the original series and the moving average together, which makes it difficult to calculate multiple moving averages for a single series. It's an area of code that needs cleaning up...I'd almost recommend writing your own code from scratch to create a new series containing the moving average data.

Regards,

DG

Locked