BasicTimeSeries array

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

BasicTimeSeries array

Post by Edward Pottasch » Wed Jul 17, 2002 7:10 am

hi,

I need to use one or more BasicTimeSeries to make a chart. How many I need I will only know just before I have to plot it. I did not manage to make an array of BasicTimeSeries[] which would be the obvious way to solve this.

Is this possible? If no ..... how would I have to solve making e.g. 5 BasicTimeSeries arrays called series1, series2, etc. in a loop (?).

thanx in advance

Edward Pottasch

Re: BasicTimeSeries array

Post by Edward Pottasch » Sun Jul 21, 2002 8:21 pm

solved it. Was basically more a Java question (i'm still learning ...). The way to do it:

BasicTimeSeries series[] = new BasicTimeSeries[cnt];
for (int i = 0; i < cnt; i++) {
series = new BasicTimeSeries("Sell Price With Profit",Day.class);
}

Locked