datasets from files/URLs

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

datasets from files/URLs

Post by vik » Mon Sep 02, 2002 9:02 am

My application needs to get data for a chart from either a file on the local computer or via http. I'm trying to work out what will be the BetterSolution(TM) : reading in all of the data into a dataset at the start, or implementing some functions to pull data from the file as it is needed. As far as I can tell the latter won't really be possible for http access as they would need to be able to seek to arbitrary points in the file; but this should still be possible for local files. The former idea would be inefficient for large datasets.

any thoughts/experiences?

vik

David Gilbert

Re: datasets from files/URLs

Post by David Gilbert » Tue Sep 03, 2002 4:06 pm

How large are your datasets?

DG.

vik

Re: datasets from files/URLs

Post by vik » Wed Sep 04, 2002 3:39 am

Not sure yet ;) But I'm planning for the worst. I'm graphing data from a datalogging application, so it really depends how far back the user would want to go. I'm trying to decide if the data should be broken into segments, say of one month or one week. If data was sampled every 5 minutes, this would give about 2000 samples per week. So I'm looking at between 10^3 and 10^4 data points per series, with perhaps 5 series.

cheers

vik

Locked