Saving jfreechart as jpeg shows repeating legend -
i have created jfreechart , i'm trying convert image.
jframe frame = new jframe("chart"); frame.getcontentpane().add(new chartpanel(chart), borderlayout.center); frame.pack(); frame.setvisible(true); createimage(chart); //createimage method public static void createimage(jfreechart chart){ try{ chartutilities.savechartasjpeg(new file("chartimage.jpeg"),chart,800,600); } catch (exception e) { e.printstacktrace(); }
Comments
Post a Comment