Deffered loading of datasets

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

Deffered loading of datasets

Post by Craig Tataryn » Wed May 08, 2002 9:27 pm

Hi there, I am trying to create a TimeSeries (combined) chart (two datasets) but I would like to display the chart in my application without any data at first. It will just have Jan-Dec of this year along the horizontal axis and numberical values 0-100 along the vertical.

The user will then choose a menu option that allows them to pick a file containing the input for the first dataset. The data will then be compiled into a BasicTimeSeries and added to the chart's dataset. The user will do the same for dataset 2.

However, no matter how hard I try, I cannot simply show the chart without data and then add datasets on the fly for display. It just won't show the new datasets.

Does anyone have any suggestions or sample code they could share?

Thanks,

Craig.

Craig Tataryn

Re: Deffered loading of datasets

Post by Craig Tataryn » Thu May 09, 2002 1:38 am

Never mind! Had a few lines of code missing, added them in and everything is loading properly.

Thanks,

Craig.

Locked