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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -