hi all
i want to create a pie chart but i get an excepion i will print the code and the exception i will be greatful for any help
DefaultPieDataset pie1=new DefaultPieDataset();
pie1.setValue("Section 1", 46);
pie1.setValue("Section 2", 56);
pie1.setValue("Section 3", 43);
pie1.setValue("Section 4", 11);
JFreeChart chart=ChartFactory.createPieChart("Log ID chart", pie1, true, true, true);
PiePlot m=(PiePlot)chart.getPlot();
ChartFrame f=new ChartFrame("Chart",chart);
f.setVisible(true);
f.setSize(450,500);