When I tried to create a JFreeChart object from a jsp page, I tried to use the method JFreeChart chart = ChartFactory.createGanttChart("Gantt Chart","Task","Date", dataset, true, false); it sends this error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred between lines: 4 and 14 in the jsp file: /gantt.jsp
Generated servlet error:
C:\Apache\work\Standalone\localhost\chart\gantt$jsp.java:69: Wrong number of arguments in method.
JFreeChart chart = ChartFactory.createGanttChart("Gantt Chart","Task","Date", dataset, true, false);
^
Wrong number of arguments in method error
Re: Wrong number of arguments in method error
There should be either one boolean (to control whether the legend is visible) or three booleans (legend, tooltips and URL generation for image maps) at the end of the parameter list. You have only two, so the error message is accurate...
Regards,
DG
Regards,
DG