Discussion about JFreeChart related to stockmarket charts.
-
developer78
- Posts: 15
- Joined: Fri Jan 11, 2008 10:58 am
Post
by developer78 » Fri Jan 11, 2008 2:01 pm
MovingAverage.createMovingAverage((XYDataset source,
java.lang.String suffix,
long period,
long skip));
the parameters- long period,long skip, what it actually takes?
how do i manipulate data?
plz suggest

-
david.gilbert
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
-
Contact:
Post
by david.gilbert » Thu Jan 17, 2008 6:18 pm
For each series in the source dataset:
- create a new series containing the same x-values, except for those in the range x0 to x0+skip which are left out (so that is the meaning of the 'skip' argument);
- for each x-value in the new series, calculate the average of the y-values from the original series in the range x to x-period (so that is the meaning of the 'period' argument).