DefaultPieDataset myColoredPieChart = new DefaultPieDataset();
myColoredPieChart.setValue("Java", 12.9);
.......
org.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With