Plot Large Datasets Without OutOfMemoryError

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ed0906
Posts: 5
Joined: Mon Oct 21, 2013 7:42 pm
antibot: No, of course not.

Plot Large Datasets Without OutOfMemoryError

Post by ed0906 » Mon Nov 04, 2013 3:59 pm

Hi, im plotting lots of series of quite large datasets
using:

Code: Select all

XYSeriesCollection dataset = new XYSeriesCollection();
My program works by plotting the data and showing it to the user, the user then clicks "next series" and the chart is replotted with an extra series

However after adding about 20 series I get an OutOfMemoryError

Is there anyway I can do this where jfreechart plots but doesn't store the old series in memory every time I add a new one? Or some other method of avoiding low memory errors?

Locked