I am trying to create charts by using JFreeChart-0.9.4 in my application. As its mentioned in the http://www.javaworld.com/javaworld/jw-12-2002/jw-1227-opensourceprofile.html
. I added two jar files i.e
"To compile and run the code, you must have two jar files from the JFreeChart distribution, jfreechart-0.9.4.jar and jcommon-0.7.1.jar, in your classpath"
for example: For Pie Chart, following code must be written.
DefaultPieDataset pieDataset = new DefaultPieDataset();
orld", new Integer(75));
", new Integer(25));
JFreeChart chart = ChartFactory.createPieChar
("Sample Pie Chart", // Title
pieDataset, // Dataset
true // Show legend
I ADDED JAR FILES IN MY CLASSPATH. BUT STILL I AM GETTING AN ERROR WHEN I AM COMPILING THE PROGRAM.
THE ERRORS ARE "Unresolved Class DefaultPieDataset" and so on all the classes that are used in the above code.
Pls Help me out. I am really oblized to you if u can guide me step by step that has to be done.