DefaultCategoryDataSource 7.3 Constructors

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

DefaultCategoryDataSource 7.3 Constructors

Post by Randy Kemp » Wed Feb 20, 2002 3:16 pm

When I tried my application in JFreeChart 7.3. Please look at these two statements:
1. return new DefaultCategoryDataset(data);
2. return new DefaultCategoryDataset(seriesNames, categories, data);
seriesNames is an arraylist, categories is an arraylist, and data is Number[][]
Before 7.3, I could compile and run a program with statement 2. Now I get this result:
FreeChartServletPcs3.java:540: cannot resolve symbol
symbol : constructor DefaultCategoryDataset (java.util.ArrayList,java.util.Arr
ayList,java.lang.Number[][])
location: class com.jrefinery.data.DefaultCategoryDataset
return new DefaultCategoryDataset(seriesNames, categories, data);
^
1 error
If I use option 2 instead, I can get a clean compile. Has the constructor changed? If so, it is not reflected in the new documentation, which I have looked at.

David. What are the current constructors for DefaultCategoryDataset?
Since they are in jcommon.jar, and are class files, I can't view the source.

David Gilbert

Re: DefaultCategoryDataSource 7.3 Constructors

Post by David Gilbert » Wed Feb 20, 2002 5:48 pm

Hi Randy,

All the source code for the classes in jcommon.jar can be downloaded from:

http://www.jrefinery.com/jcommon

There's a note about this in the README file in the JFreeChart download.

I probably did change the constructor API and probably didn't document it. I apologise for the inconvenience, but intend to stick with my policy that the API is subject to change at any time until version 1.0.0 is released.

Regards,

DG.

Randy Kemp

Re: DefaultCategoryDataSource 7.3 Constructors

Post by Randy Kemp » Wed Feb 20, 2002 6:02 pm

When I go to that site, and try to download, I get a server 500 error, on either the zip or the tar file. But I can download other things, like Jfreechart. Is this a temporary problem on the server or permanent? If it were me, then I couldn't re-download jfreechart.

David Gilbert

Re: DefaultCategoryDataSource 7.3 Constructors

Post by David Gilbert » Wed Feb 20, 2002 7:00 pm

I think the FTP server is down, I cannot access any of the download files. I can only apologise, and accelerate the move across to the new web hosting company I have chosen.

In the meantime, I've just uploaded the JCommon files to the JFreeChart project page on SourceForge:

http://sourceforge.net/projects/jfreechart

You should be able to access them from there.

Regards,

DG.

Locked