One more question on DataSource

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

One more question on DataSource

Post by Anthony Pippen » Thu Apr 26, 2001 1:42 am

Thanks, David

I have initialize the data,

Number[][] data = new Double[3][10];

and assign value into it,

for(int i=0; i<2; i++){
data[0] = new Double(taMean[i+1]);
data[1] = new Double(tsMean[i+1]);
data[2] = new Double(tfMean[i+1]);
}

where taMean[i+1] must have value in it when checking

also, I have implement DefaultCategoryDataSource,

CategoryDataSource myDataSource = new DefaultCategoryDataSource(data);

One more question, Is the initialization of data[][] correct?
and should I assign value to all data[3][10] array element?

David Gilbert

RE: One more question on DataSource

Post by David Gilbert » Sat Apr 28, 2001 11:07 pm

You do need to make sure there are values for every index in the array - DefaultCategoryDataSource doesn't work with null or missing values.

Regards,

DG.

Locked