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.
DefaultCategoryDataSource 7.3 Constructors
Re: DefaultCategoryDataSource 7.3 Constructors
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.
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.
Re: DefaultCategoryDataSource 7.3 Constructors
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.
Re: DefaultCategoryDataSource 7.3 Constructors
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.
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.