All things are correct it is giving error in the below code of line final JFreeChart chart = ChartFactory.createAreaChart("Area Chart", "", "Value", dataset, PlotOrientation.VERTICAL,true, true, false); telling that The method createAreaChart(String, String, String, CategoryDataset, PlotOrientation, boolean, boolean, boolean) in the type ChartFactory is not applicable for the arguments (String, String, String, CategoryDataset, PlotOrientation, boolean, boolean, boolean) everything is correct seems, dont bother about the names these are correct, also CategoryDataset and the PlotOrientation are correct I have given the warning and error in the underline lines above. |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| Regards Chandan