Hello,
I have the problem that my XYLineChart has some thousands of precise Double values. The rendered chart graph is not really readable, the chart goes up and down for each sample, the graph is very 'noisy'.
Does JFreeChart provide a filter or something similar which displays averaged values for each sample? E.g. each chart value could be computed as the average of the 3 values before and 3 values after.
The graph would be much better readable then.
An example of such a diagram can be seen in https://github.com/ssaring/sportstracker/issues/153 . This one looks still "ok", it's getting worse when more data is present.
Bye, Stefan
Smoother XYLineChart with averaged values?
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: Smoother XYLineChart with averaged values?
Have a look at the MovingAverage class.