how to save chart ?

Discussion about JFreeChart related to stockmarket charts.
Locked
Raj

how to save chart ?

Post by Raj » Mon Aug 02, 2004 4:23 am

Hi

I have developed BarChart using JFree Chart, I have displayed that chart in browser as Applet. How can I save that chart as .jpg or.png files.
please let me know this..Thanks in advance.

hongping
Posts: 14
Joined: Thu Jul 29, 2004 1:32 am

Post by hongping » Mon Aug 16, 2004 5:19 pm

Normally applets cannot write to files on the client's computer due to security reasons, but signing the applet may work.

http://java.sun.com/sfaq/#read

Once you have access to write files, you could use ChartUtilities.saveChartAsJPEG or saveChartAsPNG.

Locked