OSLRegression for a TimeSeries Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mm2313
Posts: 1
Joined: Thu Mar 26, 2015 8:13 pm
antibot: No, of course not.

OSLRegression for a TimeSeries Chart

Post by mm2313 » Thu Mar 26, 2015 8:19 pm

Hello,
I am new to JfreeChart but I have been trying to create a Time Series Chart with dates on the X axis and values on the Y.
That I have working, now I want to add a Linear Regression Line and cannot find any examples on how to do this for a timeseries chart.
Is that because it cannot be done? Please advise. If it can be done, can you please point me to an example?
Thanks so much,
Maureen :P

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: OSLRegression for a TimeSeries Chart

Post by John Matthews » Fri Mar 27, 2015 10:22 pm

This Q&A suggests Regression and XYLineAnnotation.

Locked