Problem implementing JFreeChart
DefaultPieDataset myColoredPieChart = new DefaultPieDataset();
myColoredPieChart.setValue("Java", 12.9);
.......
or开发者_开发百科g.jfree.chart.JFreeChart myColoredChart=ChartFactory.createPieChart("Programming - Colored Pie Chart Example",myColoredPieChart,true,true,false);
I get a error "The type org.jfree.util.PublicCloneable cannot be resolved. It is indirectly referenced from required .class files"
Anyone a idea how to fix it?
JFreeChart is packaged as multiple jar files; you're probably not including all of them in your program. The one named jcommon-XXX.jar
contains the class that's missing, so be sure to inclide that one in your program.
精彩评论